Add sitemap integration and render robots.txt via ts

This commit is contained in:
thiloho
2025-04-27 03:38:25 +02:00
parent 6a97f847c6
commit f88fe15fe0
12 changed files with 91 additions and 15 deletions

View File

@@ -26,9 +26,12 @@ const { title, description } = Astro.props;
<link
rel="alternate"
type="application/rss+xml"
title="Your Site's Title"
href={new URL("rss.xml", Astro.site)}
title="Thilo Hohlt's Blog"
href={new URL("rss.xml", Astro.url.origin)}
/>
<head>
<link rel="sitemap" href="/sitemap-index.xml" />
</head>
<ClientRouter />
<script is:inline>
const setTheme = () => {