Skip to content

Commit ab0e002

Browse files
bin16ulivz
authored andcommitted
fix($plugin-blog): blocking front matter custom layout config (close: #906) (#1027)
1 parent cd7d32a commit ab0e002

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/@vuepress/plugin-blog/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ module.exports = (options, ctx) => {
6464
frontmatter = {}
6565
}) => {
6666
if (when(pageCtx)) {
67-
Object.assign(rawFrontmatter, frontmatter)
67+
Object.keys(frontmatter).forEach(key => {
68+
rawFrontmatter[key] = rawFrontmatter[key] || frontmatter[key]
69+
})
6870
Object.assign(pageCtx, data)
6971
}
7072
})

0 commit comments

Comments
 (0)