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

feat: optionally hide subpages #721

Merged
merged 3 commits into from Oct 9, 2022

Conversation

jkomyno
Copy link
Contributor

@jkomyno jkomyno commented Oct 8, 2022

Optionally hide subpages via hide: true. The starter demo slides now reflect this new functionality.

Example:

---
src: ./subpage2.md
hide: true
---

In this example, ./subpage2.md is skipped. This:

  • doesn't generate any extra slide
  • doesn't forget about any other slide in the deck
  • keeps $slidev.nav.currentPage and $slidev.nav.total consistent, as if the markdown block above was never defined in the first place.

Closes #720.

TODO:

@antfu antfu merged commit b746e34 into slidevjs:main Oct 9, 2022
@jkomyno
Copy link
Contributor Author

jkomyno commented Oct 9, 2022

Hey @antfu, thanks for merging this! I have a few new PRs incoming for slidev (both docs and Vercel config-related).
I wonder, are you interested in marking the repositories under the slidevjs organization with the hacktoberfest label, as in https://hacktoberfest.com/participation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: optionally hide subpages via hide: true
2 participants