summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Troy McConaghy <troy@troymcconaghy.com> 2025-01-22 09:39:18 -0600
committerGravatar GitHub <noreply@github.com> 2025-01-22 16:39:18 +0100
commit4d0846ba67c6d187b06e14debec650ffb008ffb2 (patch)
treea67deeb36fceb314971062621153bd3ef5565b75
parent31668a1bdee80c1e2d59303397b118674ceb7347 (diff)
downloadastro-4d0846ba67c6d187b06e14debec650ffb008ffb2.tar.gz
astro-4d0846ba67c6d187b06e14debec650ffb008ffb2.tar.zst
astro-4d0846ba67c6d187b06e14debec650ffb008ffb2.zip
Add rel links to sitemap and rss feed in blog starter kit (#13043)
-rw-r--r--examples/blog/src/components/BaseHead.astro3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/blog/src/components/BaseHead.astro b/examples/blog/src/components/BaseHead.astro
index 344124012..8477c55ea 100644
--- a/examples/blog/src/components/BaseHead.astro
+++ b/examples/blog/src/components/BaseHead.astro
@@ -2,6 +2,7 @@
// Import the global.css file here so that it is included on
// all pages through the use of the <BaseHead /> component.
import '../styles/global.css';
+import { SITE_TITLE } from '../consts';
interface Props {
title: string;
@@ -18,6 +19,8 @@ const { title, description, image = '/blog-placeholder-1.jpg' } = Astro.props;
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
+<link rel="sitemap" href="/sitemap-index.xml" />
+<link rel="alternate" type="application/rss+xml" title={SITE_TITLE} href={new URL("rss.xml", Astro.site)} />
<meta name="generator" content={Astro.generator} />
<!-- Font preloads -->