diff --git a/packages/@vuepress/core/lib/prepare/ClientComputedMixin.js b/packages/@vuepress/core/lib/prepare/ClientComputedMixin.js index e0646a02f3..9785408229 100644 --- a/packages/@vuepress/core/lib/prepare/ClientComputedMixin.js +++ b/packages/@vuepress/core/lib/prepare/ClientComputedMixin.js @@ -63,9 +63,9 @@ module.exports = siteData => { get $title () { const page = this.$page - const { seoTitle } = this.$page.frontmatter - if (typeof seoTitle === 'string') { - return seoTitle + const { metaTitle } = this.$page.frontmatter + if (typeof metaTitle === 'string') { + return metaTitle } const siteTitle = this.$siteTitle diff --git a/packages/docs/docs/theme/option-api.md b/packages/docs/docs/theme/option-api.md index ea8b753b54..0fbb7aa90c 100644 --- a/packages/docs/docs/theme/option-api.md +++ b/packages/docs/docs/theme/option-api.md @@ -1,5 +1,5 @@ --- -seoTitle: Option API | Theme +metaTitle: Option API | Theme --- # Option API diff --git a/packages/docs/docs/zh/plugin/option-api.md b/packages/docs/docs/zh/plugin/option-api.md index f01d4724d7..fee28ea1f7 100644 --- a/packages/docs/docs/zh/plugin/option-api.md +++ b/packages/docs/docs/zh/plugin/option-api.md @@ -1,5 +1,5 @@ --- -seoTitle: Option API | Plugin +metaTitle: Option API | Plugin --- # Option API diff --git a/packages/docs/docs/zh/theme/option-api.md b/packages/docs/docs/zh/theme/option-api.md index 9a2fe2c819..f304f7bd12 100644 --- a/packages/docs/docs/zh/theme/option-api.md +++ b/packages/docs/docs/zh/theme/option-api.md @@ -1,5 +1,5 @@ --- -seoTitle: Option API | Theme +metaTitle: Option API | Theme --- # Option API