We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c21a21b commit db88a55Copy full SHA for db88a55
packages/@vuepress/plugin-blog/index.js
@@ -64,7 +64,9 @@ module.exports = (options, ctx) => {
64
frontmatter = {}
65
}) => {
66
if (when(pageCtx)) {
67
- Object.assign(rawFrontmatter, frontmatter)
+ Object.keys(frontmatter).forEach(key => {
68
+ rawFrontmatter[key] = rawFrontmatter[key] || frontmatter[key]
69
+ })
70
Object.assign(pageCtx, data)
71
}
72
})
0 commit comments