Skip to content

Commit c9b0700

Browse files
committed
feat: frontmatter.seoTitle
1 parent aa3ad68 commit c9b0700

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/@vuepress/core/lib/prepare/ClientComputedMixin.js

+5
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ module.exports = siteData => {
6363

6464
get $title () {
6565
const page = this.$page
66+
const { seoTitle } = this.$page.frontmatter
67+
if (typeof seoTitle === 'string') {
68+
return seoTitle
69+
}
70+
6671
const siteTitle = this.$siteTitle
6772
const selfTitle = page.frontmatter.home ? null : (
6873
page.frontmatter.title || // explicit title

0 commit comments

Comments
 (0)