mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
frontmatter: Move frontmatter content into vm.frontmatter (#551)
This commit is contained in:
parent
a5f333a329
commit
cd09d91434
@ -4,7 +4,7 @@ const install = function (hook, vm) {
|
||||
hook.beforeEach(content => {
|
||||
const {attributes, body} = parser(content)
|
||||
|
||||
Docsify.util.merge(vm.config, attributes.config)
|
||||
vm.frontmatter = attributes
|
||||
|
||||
return body
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user