mirror of
https://gitee.com/docsifyjs/docsify.git
synced 2024-12-02 03:59:19 +08: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…
Reference in New Issue
Block a user