diff --git a/lib/app/dataMixin.js b/lib/app/dataMixin.js index 084dd4c2ad..2f3abab6b9 100644 --- a/lib/app/dataMixin.js +++ b/lib/app/dataMixin.js @@ -47,13 +47,13 @@ export default { return targetLang || defaultLang || {} }, $title () { - return this.$localeConfig.title || this.$site.title || '' + return this.$page.frontmatter.title || this.$localeConfig.title || this.$site.title || '' }, $description () { - return this.$localeConfig.description || this.$site.description || '' + return this.$page.frontmatter.description || this.$localeConfig.description || this.$site.description || '' }, $lang () { - return this.$localeConfig.lang || 'en-US' + return this.$page.frontmatter.lang || this.$localeConfig.lang || 'en-US' }, $localePath () { return this.$localeConfig.path || '/'