-
Notifications
You must be signed in to change notification settings - Fork 21
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
Integration of a Persistent Navigation Link between Blog and Documentation Sections #50
Comments
Thanks for the feedback, super appreciated 🙌 This is definitely an area that I want to improve in the plugin but I have not yet figured out what would be the best way to do it:
I am open to suggestions and feedback on this topic but until then, this is something that could be achieved using a Starlight override for the This is the component overriden by the blog plugin to add the link to the blog at the right of the header and by providing your own override, you would be able to have control over the link or add one for the documentation. Just like the blog plugin override, you own override will need to reuse the built-in An example of the override could look like this: ---
import Default from '@astrojs/starlight/components/ThemeSelect.astro'
import type { Props } from '@astrojs/starlight/props'
const isBlog = Astro.props.slug.startsWith('blog')
---
<div>
<a href="/">Docs</a>
<a href="/blog/">Blog</a>
</div>
<Default {...Astro.props}><slot /></Default>
<style>
div {
border-inline-end: 1px solid var(--sl-color-gray-5);
display: none;
gap: var(--sl-nav-gap);
padding-inline-end: 1rem;
}
@media (min-width: 50rem) {
div {
display: flex;
}
}
a {
color: var(--sl-color-text-accent);
font-weight: 600;
text-decoration: none;
}
</style> |
Great, <a href={getBlogPathWithBase('/')}>{config.title} ) About the configuration, well a true/false to show the link or not and label text, |
Is your feature request related to a problem?
Yes, it's related to navigation issues within the site.
Describe the solution you'd like
I would like a feature where a persistent navigation link or button is available that connects the blog section directly back to the documentation/wiki part of the site. This could be a simple "Back to Documentation" button or a more integrated navigational element in the site's header or sidebar.
Describe alternatives you've considered
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: