Skip to content

Commit

Permalink
feat($core): global computed '$frontmatter'
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Nov 7, 2018
1 parent 85239bb commit 3a42c24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/@vuepress/core/lib/prepare/ClientComputedMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ module.exports = siteData => {
return this.$site.themeConfig
}

get $frontmatter () {
return this.$page.frontmatter
}

get $localeConfig () {
const { locales = {}} = this.$site
let targetLang
Expand Down

0 comments on commit 3a42c24

Please sign in to comment.