1.0.1 • Published 2 years ago
vuepress-latest-articles v1.0.1
VuePress Latest articles
Latest arricles plugin for VuePress
Show the latest n articles in your Vuepress blog.
Install
Install dependence.
npm install vuepress-plugin-latest-articles
# OR
yarn add vuepress-plugin-latest-articles
Usage
Add plugin in your vuepress config.
// .vuepress/config
module.exports = {
plugins: [
"latest-articles"
]
}
Now, you can using it in Markdown!
Simple:
<LatestArticles />
More:
<LatestArticles title="My Title" titleTag="h2" number="10" />
Additionally, all pages will published. If there are some pages that you don't want to publish, you can add an item in frontmatter:
---
publish: false
---
Config
title
- type:
String
- default:
"Latest Articles" | "近期文章"
The title.
titleTag
- type:
String
- default:
"h2"
The tag of title element.
number
- type:
Number
- default:
10
The number of articles.
prefix
- type:
String
- default:
undefined
The prefix of articles