Catalog Page
Less than 1 minute
VuePress Theme Hope provides catalog component and auto catalog generation using @vuepress/plugin-catalog
.
Introduction
This feature is enabled by default. If there is no README.md
in the folder, the theme will automatically generate a directory page for it. To disable, set plugins.catalog
to false
.
You can control this via plugins.catalog
in the theme options, for example:
- Exclude some folders from catalog generation via
plugins.catalog.exclude
- Control frontmatter generation through
plugins.catalog.frontmatter
.
For detailed configuration, see Catalog plugin docs.
Catalog Component
You can use the <Catalog>
component directly in Markdown to display the catalog.
Homepage Catalog Demo
Catalog
<!-- Used to limit height -->
<div class="catalog-display-container">
<Catalog base='/' />
</div>