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 navigation slots #739

Closed
4 tasks done
stafyniaksacha opened this issue Jun 7, 2022 · 0 comments · Fixed by #741
Closed
4 tasks done

Add navigation slots #739

stafyniaksacha opened this issue Jun 7, 2022 · 0 comments · Fixed by #741
Labels
enhancement New feature or request theme Related to the theme

Comments

@stafyniaksacha
Copy link
Contributor

Is your feature request related to a problem? Please describe.

With the new theme, we can not easily add content in the navbar via slots as we can do for the home and aside parts

Describe the solution you'd like

It would be great to have those slots exposed in the Layout:

  • nav-bar-title-before
  • nav-bar-title-after
  • nav-bar-content-before
  • nav-bar-content-after
  • nav-screen-content-before
  • nav-screen-content-after

https://github.com/vuejs/vitepress/blob/next-theme/src/client/theme-default/Layout.vue#L27

Describe alternatives you've considered

No response

Additional context

No response

Validations

stafyniaksacha added a commit to stafyniaksacha/vitepress that referenced this issue Jun 7, 2022
@kiaking kiaking changed the title [next] navigation slots Add navigation slots Jun 14, 2022
@kiaking kiaking added enhancement New feature or request theme Related to the theme labels Jun 14, 2022
brc-dd added a commit that referenced this issue Jul 8, 2022
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request theme Related to the theme
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants