frontmatter: Move frontmatter content into vm.frontmatter (#551)

This commit is contained in:
Petr Joachim
2018-06-29 21:21:32 +08:00
committed by cinwell.li
parent a5f333a329
commit cd09d91434
+1 -1
View File
@@ -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
})