From e5a2c6422a841d732fa1ce62b74ab4fb07fe0ff8 Mon Sep 17 00:00:00 2001 From: Zerook Date: Mon, 19 Nov 2018 23:22:19 +0800 Subject: [PATCH] blog-plugin support permalink and layout in metadata of markdown files --- packages/@vuepress/plugin-blog/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vuepress/plugin-blog/index.js b/packages/@vuepress/plugin-blog/index.js index 00a4d870f2..4ed4a4ca9a 100644 --- a/packages/@vuepress/plugin-blog/index.js +++ b/packages/@vuepress/plugin-blog/index.js @@ -64,7 +64,7 @@ module.exports = (options, ctx) => { frontmatter = {} }) => { if (when(pageCtx)) { - Object.assign(rawFrontmatter, frontmatter) + Object.assign(frontmatter, rawFrontmatter) Object.assign(pageCtx, data) } })