From 85239bbed3b7b8a669c281d82b7aca2b5c7fcce8 Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Wed, 7 Nov 2018 22:20:14 +0800 Subject: [PATCH] chore: rename 'seoTitle' to 'metaTitle' --- packages/@vuepress/core/lib/prepare/ClientComputedMixin.js | 6 +++--- packages/docs/docs/theme/option-api.md | 2 +- packages/docs/docs/zh/plugin/option-api.md | 2 +- packages/docs/docs/zh/theme/option-api.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) 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