diff --git a/packages/@vuepress/core/lib/prepare/ClientComputedMixin.js b/packages/@vuepress/core/lib/prepare/ClientComputedMixin.js index 9785408229..2e99ba4c6c 100644 --- a/packages/@vuepress/core/lib/prepare/ClientComputedMixin.js +++ b/packages/@vuepress/core/lib/prepare/ClientComputedMixin.js @@ -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