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

This commit is contained in:
Petr Joachim 2018-06-29 15:21:32 +02:00 committed by cinwell.li
parent a5f333a329
commit cd09d91434

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
})