Skip to content

Commit

Permalink
fix($core): plugin additionalPages frontmatter attribute is ignored w…
Browse files Browse the repository at this point in the history
…hen combined with content (close: #1157)
  • Loading branch information
ulivz committed Jan 8, 2019
1 parent 45481b9 commit 87894ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/core/lib/prepare/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ module.exports = class Page {
if (this._filePath.endsWith('.md')) {
const { excerpt, data, content } = parseFrontmatter(this._content)
this._strippedContent = content
this.frontmatter = data
Object.assign(this.frontmatter, data)

// infer title
const title = inferTitle(this.frontmatter, this._strippedContent)
Expand Down

0 comments on commit 87894ff

Please sign in to comment.