You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
frontmatter in additionalPages should be included in $page
What is actually happening?
$page.frontmatter is empty. I'm just guessing that it is being overridden by the "empty" frontmatter embedded in the content attribute; if so then I think these should be merged (up for debate I guess).
Note, not a blocker as one can work around this by defining the frontmatter in a plugin extendPageData. But it seems awkward. The following works as expected:
Bug report
Version
[email protected]
Steps to reproduce
make a vuepress plugin like the following
build vuepress (e.g. "npm run docs:build"), open the generated file (e.g. /dist/mypath/index.html), observe the frontmatter is empty.
What is expected?
frontmatter in additionalPages should be included in $page
What is actually happening?
$page.frontmatter is empty. I'm just guessing that it is being overridden by the "empty" frontmatter embedded in the content attribute; if so then I think these should be merged (up for debate I guess).
Note, not a blocker as one can work around this by defining the frontmatter in a plugin extendPageData. But it seems awkward. The following works as expected:
Other relevant information
The text was updated successfully, but these errors were encountered: