jooy2 / vitepress-sidebar

🔌 VitePress Sidebar is a plugin for VitePress that automatically configures and manages the sidebar of your page with simple settings.
https://vitepress-sidebar.cdget.com
MIT License
144 stars 7 forks source link

Enhance the navigation bar to exclude markdown files marked as 'draft,' ensuring only finalized content is displayed. #149

Closed JurreBrandsenInfoSupport closed 3 months ago

JurreBrandsenInfoSupport commented 4 months ago

Introduce a new functionality with a flag named excludeDraftFiles to parse the frontmatter of markdown files. When encountering a file with the draft: true parameter, it will be omitted from the sidebar, ensuring that only completed content is included in the navigation.

jooy2 commented 3 months ago

Hello, thank you for using vitepress-sidebar.

This can be fixed in version 1.23.0 by setting the excludeFilesByFrontmatterFieldName option value to draft.

If you encounter any other issues, please create a new issue.

Regards,