Sitemap and robots

This commit is contained in:
Clove 2026-06-27 01:05:41 +01:00
parent 5e60cc91e8
commit 99886492e9
4 changed files with 179 additions and 8 deletions

96
css/sitemap.xsl Normal file
View File

@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.sitemaps.org/schemas/sitemap/0.9">
<xsl:output method="html" encoding="UTF-8"/>
<xsl:template match="/">
<html>
<head>
<title>c.stupid.cat Sitemap</title>
<style>
@font-face {
font-family: 'Comic Code';
src: url('/css/fonts/ComicCode.woff2');
}
:root {
--base: #1e1e2e;
--mantle: #181825;
--crust: #11111b;
--surface: #313244;
--text: #cdd6f4;
--subtext: #a6adc8;
--pink: #f5c2e7;
--blue: #89b4fa;
}
* {
box-sizing: border-box;
}
body {
min-height: 100vh;
margin: 0;
padding: 2rem 1rem;
font-family: "Comic Code", monospace;
background:
linear-gradient(
135deg,
var(--base),
var(--mantle) 60%,
var(--crust)
);
color: var(--text);
}
.container {
max-width: 850px;
margin:auto;
}
h1 {
color:var(--pink);
font-size:2rem;
}
.subtitle {
color:var(--subtext);
}
.card {
background:rgba(49,50,68,.85);
border-radius:16px;
padding:1rem;
margin:1rem 0;
border:1px solid rgba(245,194,231,.15);
transition:.2s ease;
}
.card:hover {
transform:translateY(-3px);
border-color:var(--pink);
}
a {
color:var(--blue);
text-decoration:none;
word-break:break-all;
}
a:hover {
color:var(--pink);
}
.date {
margin-top:.5rem;
color:var(--subtext);
font-size:.85rem;
}
</style>
</head>
<body>
<div class="container">
<h1>🌙 c.stupid.cat Sitemap</h1>
<p class="subtitle">A map of everything on the site.</p>
<xsl:for-each select="s:urlset/s:url">
<div class="card">
<a href="{s:loc}">
<xsl:value-of select="s:loc"/>
</a>
<div class="date">Last updated:
<xsl:value-of select="s:lastmod"/>
</div>
</div>
</xsl:for-each>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

View File

@ -17,7 +17,8 @@
<link rel="icon" type="image/svg+xml" href="/assets/favicon/favicon.svg">
<!-- SEO Meta Tags -->
<meta name="description" content="The homepage and hub for everything Clove Twilight — projects, music, Discord presence, dev stats, and more.">
<meta name="description"
content="The homepage and hub for everything Clove Twilight — projects, music, Discord presence, dev stats, and more.">
<meta name="keywords" content="Clove Twilight, c.stupid.cat, portfolio, personal, developer, homepage">
<meta name="author" content="doughmination">
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1">
@ -33,18 +34,38 @@
<!-- Open Graph / Discord / Facebook -->
<meta property="og:image" content="https://c.stupid.cat/assets/favicon/favicon.png">
<meta property="og:image:alt" content="Clove Twilight logo">
<meta property="og:site_name" content="c.stupid.cat">
<meta property="og:title" content="Clove Twilight">
<meta property="og:description" content="The homepage and hub for everything Clove Twilight — projects, music, Discord presence, dev stats, and more.">
<meta property="og:description"
content="The homepage and hub for everything Clove Twilight — projects, music, Discord presence, dev stats, and more.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://c.stupid.cat">
<meta property="og:locale" content="en_GB">
<!-- Twitter Card -->
<meta name="twitter:image" content="https://c.stupid.cat/assets/favicon/favicon.png">
<meta name="twitter:creator" content="@DoughminCEO">
<meta name="twitter:site" content="@DoughminCEO">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Clove Twilight">
<meta name="twitter:description" content="The homepage and hub for everything Clove Twilight — projects, music, Discord presence, dev stats, and more.">
<meta name="twitter:description"
content="The homepage and hub for everything Clove Twilight — projects, music, Discord presence, dev stats, and more.">
<script type="application/ld+json">
{
"@context":"https://schema.org",
"@type":"Person",
"name":"Clove Twilight",
"url":"https://c.stupid.cat",
"sameAs":[
"https://github.com/doughmination",
"https://discord.com/users/1464890289922641993",
"https://stupid.cat",
"https://x.com/DoughminCEO"
]
}
</script>
<!-- Prefetch other pages for faster navigation -->
<link rel="prefetch" href="/cool-people">
@ -57,7 +78,7 @@
</head>
<body>
<header class="nav">
<header class="nav">
<nav class="nav-links">
<a class="nav-link selected" data-href="/">Home</a>
<a class="nav-link" data-href="/cool-people">Cool People</a>
@ -87,10 +108,7 @@
<script src="/js/fronting.js"></script>
<!-- lanyard.cafe keyring (webring) — styled to match the site in css/main.css (#lc-embed) -->
<script src="https://lanyard.cafe/api/embed.js" data-theme="dark"></script>
<script src="/js/visitor-counter.js"
data-target="#visitor-counter"
data-namespace="clove-is-a-dev"
data-key="hits"
<script src="/js/visitor-counter.js" data-target="#visitor-counter" data-namespace="clove-is-a-dev" data-key="hits"
data-label="visitors"></script>
</body>

10
robots.txt Normal file
View File

@ -0,0 +1,10 @@
User-agent: Googlebot
Disallow:
User-agent: googlebot-image
Disallow:
User-agent: googlebot-mobile
Disallow:
User-agent: *
Disallow: /
Disallow: /cgi-bin/
Sitemap: https://c.stupid.cat/sitemap.xml

47
sitemap.xml Normal file
View File

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/css/sitemap.xsl"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://c.stupid.cat/</loc>
<lastmod>2026-06-20T20:56:16+00:00</lastmod>
</url>
<url>
<loc>https://c.stupid.cat/cool-people/</loc>
<lastmod>2026-06-24T04:46:56+00:00</lastmod>
</url>
<url>
<loc>https://c.stupid.cat/dev-info/</loc>
<lastmod>2026-06-24T04:46:56+00:00</lastmod>
</url>
<url>
<loc>https://c.stupid.cat/discord/</loc>
<lastmod>2026-06-24T07:33:08+00:00</lastmod>
</url>
<url>
<loc>https://c.stupid.cat/projects/</loc>
<lastmod>2026-06-24T04:46:56+00:00</lastmod>
</url>
<url>
<loc>https://c.stupid.cat/music/</loc>
<lastmod>2026-06-24T23:38:23+00:00</lastmod>
</url>
<url>
<loc>https://c.stupid.cat/88x31/</loc>
<lastmod>2026-06-25T14:38:21+00:00</lastmod>
</url>
<url>
<loc>https://c.stupid.cat/guestbook/</loc>
<lastmod>2026-06-24T04:46:56+00:00</lastmod>
</url>
</urlset>