diff --git a/packages/@vuepress/core/lib/prepare/ClientComputedMixin.js b/packages/@vuepress/core/lib/prepare/ClientComputedMixin.js index 311a8378de..e0646a02f3 100644 --- a/packages/@vuepress/core/lib/prepare/ClientComputedMixin.js +++ b/packages/@vuepress/core/lib/prepare/ClientComputedMixin.js @@ -63,6 +63,11 @@ module.exports = siteData => { get $title () { const page = this.$page + const { seoTitle } = this.$page.frontmatter + if (typeof seoTitle === 'string') { + return seoTitle + } + const siteTitle = this.$siteTitle const selfTitle = page.frontmatter.home ? null : ( page.frontmatter.title || // explicit title