npm i @yubisaki/vuepress-plugin-blogmodule.exports = {
plugins: ['@yubisaki/blog']
}pageEnhancers
-
Type:
Array -
default: []
This option is the extend enhancers for extendPageData
tagUrl
-
Type:
string -
default:
/tag/
This option is the path which page show the tags or the posts of a specific tag
categoryUrl
-
Type:
string -
default:
/category/
This option is the path which page show the categories or the posts of a specific category
module.exports = {
plugins: ['@yubisaki/blog', {
pageEnhancers,
tagUrl,
categoryUrl
}]
}extendMarkdown
Vue.computed.$tags/Vue.computed.$categories
-
length: The length of all the tags -
map: Object of tags -
list: 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
-
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 isreact -
Categories: As same as the Tags layout -
Category: As same as the Tag layout