Skip to content

Easily add blog, announcements, and similar sections to your VitePress site:


Regardless of what type of section you want to add, we will be using the term 'article' to refer to the content you want to display.

Adding new posts will be as simple as creating a new markdown file in your blog directory.

How it works

We will create a data loader file in your project. If you are using the usual setup, you can simply paste in template code.

Afterwards you can add new authors by updating the authors.js file, and create new posts by creating files in the articles directory.

js
.
├─ docs
│  ├─ articles                   // <-- Create posts by adding files here
│  │  └─ new_post.md
│  └─ .vitepress
│     ├─ theme
│     │  ├─ data
│     │  │  ├─ authors.js        // <-- Update author information
│     │  │  └─ articles.data.js  // <-- Data loader
│     │  └─ ...
│     └─ ...
└─ ...

See the next page for detailed setup instructions. You can also jump to:

If this project has helped you, would you consider funding future development by buying me a cookie? Thank you! 🍪 ❤️

Created and maintained by @cynber. Find my other projects at cynber.dev.