Skip to content

Commit

Permalink
Add rel links to sitemap and rss feed in blog starter kit
Browse files Browse the repository at this point in the history
  • Loading branch information
ttmc authored Jan 22, 2025
1 parent 31668a1 commit a20c486
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/blog/src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 -->
Expand Down

0 comments on commit a20c486

Please sign in to comment.