Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: config siteTitle by page frontmatter
  • Loading branch information
andyFang94 authored Mar 21, 2024
commit 92322d8b1e74011c5c3259643f44d304fb9a830e
3 changes: 2 additions & 1 deletion packages/@vuepress/core/lib/node/ClientComputedMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ module.exports = siteData => {
}

get $siteTitle () {
return this.$localeConfig.title || this.$site.title || ''
const { siteTitle } = this.$page.frontmatter
return siteTitle || this.$localeConfig.title || this.$site.title || ''
}

get $canonicalUrl () {
Expand Down