Skip to content

Commit

Permalink
feat: frontmatter.seoTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Oct 25, 2018
1 parent aa3ad68 commit c9b0700
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/@vuepress/core/lib/prepare/ClientComputedMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c9b0700

Please sign in to comment.