How to quickly display tags and categories data for all articles
Configuration
Since vitepress currently cannot generate purely dynamic pages, you need to add tag.md
and category.md
to generate the corresponding information
-> tag.md
md
---
layout: tag
---
-> category.md
md
---
layout: category
---
Then configure the corresponding links through the tag and category attributes in the configuration
Usage
Add relevant information in the frontmatter of the document
md
---
tags:
- vitepress
- vitepress-theme-ououe
categories:
- blog
- theme
---
Or
md
---
tag: vitepress
category: blog
---