Add head content to route data#2927
Conversation
🦋 Changeset detectedLatest commit: 7683b0c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for astro-starlight ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
|
Thanks for the review 🙌 |
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

Description
This PR adds a new property
headto route data which is an array of all tags to include in the<head>of the current page.Previously, the
<Head>component was responsible for generating a list of tags to include in the<head>of the current page and rendering them.Now, the
<Head>component is only responsible for rendering the tags available inAstro.locals.starlightRoute.head.The PR also fixes a few issues at the same time that initially triggered the discussion around this change or spotted during the implementation.