Skip to content

Commit 3a42c24

Browse files
committedNov 7, 2018
feat($core): global computed '$frontmatter'
1 parent 85239bb commit 3a42c24

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎packages/@vuepress/core/lib/prepare/ClientComputedMixin.js

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ module.exports = siteData => {
4343
return this.$site.themeConfig
4444
}
4545

46+
get $frontmatter () {
47+
return this.$page.frontmatter
48+
}
49+
4650
get $localeConfig () {
4751
const { locales = {}} = this.$site
4852
let targetLang

0 commit comments

Comments
 (0)
Please sign in to comment.