Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rel links to sitemap and rss feed in blog starter kit #13043

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

ttmc
Copy link
Contributor

@ttmc ttmc commented Jan 22, 2025

Changes

This PR fixes #13041

  • It edits only one file, BaseHead.astro, in the Astro blog starter kit. It adds three new lines to that file.
  • It adds a rel link to the (already-existing) /sitemap-index.xml file created by @astrojs/sitemap
  • It adds a rel link to the (already-existing) /rss.xml file created by @astrojs/rss
  • The link to the RSS feed file needs the global SITE_TITLE, so I added a line to the frontmatter to import that.

Testing

I created a personal blog using the Astro blog starter kit and noticed that these rel links were missing, so I added them. It worked.

Docs

No additional documentation is required because of this PR. In fact, I got most of the code for this PR from existing Astro documentation:

Copy link

changeset-bot bot commented Jan 22, 2025

⚠️ No Changeset found

Latest commit: a20c486

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@florian-lefebvre florian-lefebvre merged commit 4d0846b into withastro:main Jan 22, 2025
15 checks passed
@ttmc ttmc deleted the patch-1 branch January 22, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: example Related to an example package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In the "Astro Starter Kit: Blog", BaseHead contains no rel links to the sitemap or RSS feed
2 participants