Skip to content

Commit 87894ff

Browse files
committed
fix($core): plugin additionalPages frontmatter attribute is ignored when combined with content (close: #1157)
1 parent 45481b9 commit 87894ff

File tree

1 file changed

+1
-1
lines changed
  • packages/@vuepress/core/lib/prepare

1 file changed

+1
-1
lines changed

packages/@vuepress/core/lib/prepare/Page.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ module.exports = class Page {
9999
if (this._filePath.endsWith('.md')) {
100100
const { excerpt, data, content } = parseFrontmatter(this._content)
101101
this._strippedContent = content
102-
this.frontmatter = data
102+
Object.assign(this.frontmatter, data)
103103

104104
// infer title
105105
const title = inferTitle(this.frontmatter, this._strippedContent)

0 commit comments

Comments
 (0)