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

Slot for top or bottom of document #762

Closed
4 tasks done
ronaldaug opened this issue Jun 9, 2022 · 1 comment · Fixed by #786
Closed
4 tasks done

Slot for top or bottom of document #762

ronaldaug opened this issue Jun 9, 2022 · 1 comment · Fixed by #786

Comments

@ronaldaug
Copy link

ronaldaug commented Jun 9, 2022

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

According to the documentation, it seems there is no slot like before or after document content.

I just want to add global components such as search box or breadcrumbs on top of every document.

There is an option that I can add <bread-crumbs /> to every .md documents. However, I think this is not a proper way to do it as it's used in every documents.

Describe the solution you'd like

Adding a slot before or after the document content.

<template #doc-before></template>
<template #doc-after></template>

Describe alternatives you've considered

No response

Additional context

No response

Validations

@qwqcode
Copy link

qwqcode commented Jun 13, 2022

a comment area after the page also need this

kecrily added a commit to kecrily/vitepress that referenced this issue Jun 13, 2022
kiaking added a commit that referenced this issue Jun 14, 2022
close #762 

Co-authored-by: Kia Ishii <kia.king.08@gmail.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
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants