-
-
Notifications
You must be signed in to change notification settings - Fork 586
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
Fix sidebar
frontmatter use in internal links
#2613
Conversation
🦋 Changeset detectedLatest commit: 0ce09a1 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. |
size-limit report 📦
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, interesting we did not hit this in the Starlight docs, nice catch and it now works as expected when testing locally with the fix 🎉
Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com>
* main: [ci] release (withastro#2615) [ci] format feat: add Backstage social icon (withastro#2600) Add SidebarPersister specifier to Starlight package (withastro#2605) Fix i18n type issue with multiple data content collections (withastro#2611) Fix sidebar issue in custom pages with custom sidebar (withastro#2614) Fix `sidebar` frontmatter use in internal links (withastro#2613) Add `grid-template-columns` to`<CardGrid>` (withastro#2606) i18n(zh-cn): Update `site-search.mdx` (withastro#2604)
Description
sidebar
frontmatter options to control appearance of a sidebar link when included using the “internal” link syntax, i.e.{ slug: 'page/name' }
or the shorthand of'page/name'
sidebar.label
,sidebar.badge
, andsidebar.attrs
in frontmatter are ignored with onlytitle
from frontmatter being used when an explicit label is not set.