Skip to content

Commit

Permalink
fix($plugin-blog): category field in frontmatter doesn't work (close: #…
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Oct 17, 2018
1 parent 1dd1b55 commit 00f5d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/plugin-blog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ module.exports = (options, ctx) => {
tags.forEach(tag => handleTag(tag, key))
}
if (isString(category)) {
handleCategory(categories, key)
handleCategory(category, key)
}
if (Array.isArray(categories)) {
categories.forEach(category => handleCategory(category, key))
Expand Down

0 comments on commit 00f5d3b

Please sign in to comment.