Skip to content

Commit

Permalink
fix($plugin-blog): blocking front matter custom layout config (close: #…
Browse files Browse the repository at this point in the history
  • Loading branch information
bin16 authored and ulivz committed Nov 20, 2018
1 parent cd7d32a commit ab0e002
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@vuepress/plugin-blog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ module.exports = (options, ctx) => {
frontmatter = {}
}) => {
if (when(pageCtx)) {
Object.assign(rawFrontmatter, frontmatter)
Object.keys(frontmatter).forEach(key => {
rawFrontmatter[key] = rawFrontmatter[key] || frontmatter[key]
})
Object.assign(pageCtx, data)
}
})
Expand Down

0 comments on commit ab0e002

Please sign in to comment.