In the "Astro Starter Kit: Blog", BaseHead contains no rel links to the sitemap or RSS feed #13041
Closed
1 task done
Labels
- P2: nice to have
Not breaking anything but nice to have (priority)
pkg: example
Related to an example package (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Today, you can generate a new blog using the "Astro Starter Kit: Blog", i.e.
npm create astro@latest -- --template blog
. If you do that, the generated site has a sitemap file at/sitemap-index.xml
and an RSS feed file at/rss.xml
, but there are no rel links to those files in the<head>
tag.What's the expected result?
The
<head>
tag defined in BaseHead.astro, should contain rel links to the sitemap file and the RSS feed file of the form:The rel link for the sitemap file is from the documentation for
@astrojs/sitemap
.The rel link for the RSS feed file is based on the documentation for
@astrojs/rss
. One should useSITE_TITLE
rather thantitle
because the RSS feed is for the whole site.To fix this bug, all one would need to do is add those two links to the
<head>
tag inBaseHead.astro
, along with one more line in the frontmatter section at the top ofBaseHead.astro
:Link to Minimal Reproducible Example
https://stackblitz.com/github/withastro/astro/tree/latest/examples/blog?file=src%2Fcomponents%2FBaseHead.astro&view=editor
Participation
The text was updated successfully, but these errors were encountered: