@chavesweb/vuepress-plugin-blog v1.0.4
@yubisaki/vuepress-plugin-blog
Install
npm i @yubisaki/vuepress-plugin-blogUsage
module.exports = {
plugins: ['@yubisaki/blog']
}Options
pageEnhancers
Type:
Arraydefault: []
This option is the extend enhancers for extendPageData
tagUrl
Type:
stringdefault:
/tag/
This option is the path which page show the tags or the posts of a specific tag
categoryUrl
Type:
stringdefault:
/category/
This option is the path which page show the categories or the posts of a specific category
example
module.exports = {
plugins: ['@yubisaki/blog', {
pageEnhancers,
tagUrl,
categoryUrl
}]
}What can you get?
extendMarkdown
Vue.computed.$tags/Vue.computed.$categories
length: The length of all the tagsmap: Object of tagslist: Array of tags data
[{ name, path, pages }]name: The tag name, such asReact,Reduxpath: The path which page show the posts of a specific tag, for examplexxx.blog/tag/reactwill show the posts(the pages field) which tag isreactpages: The posts which the tag field contains
Vue.computed.$tag/Vue.computed.$category
This value is a item of Vue.computed.$tags.list which the name field equals to this.$route.meta.tagName
The Layout maybe your theme should support
Tags: This layout is used to show the tags page, such asxxx.blog/tag/Tag: This layout is used to show the posts which tag equals to tag url, for examplexxx.blog/tag/reactwill show the posts which tag isreactCategories: As same as the Tags layoutCategory: As same as the Tag layout