Skip to content

Commit

Permalink
fix($core): reference correct canonical Url frontmatter property (fix #…
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdehaven authored Oct 15, 2020
1 parent e2b6641 commit fbf5e5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@vuepress/core/lib/node/ClientComputedMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ module.exports = siteData => {
}

get $canonicalUrl () {
const { canonical } = this.$page.frontmatter
const { canonicalUrl } = this.$page.frontmatter

if (typeof canonical === 'string') {
return canonical
if (typeof canonicalUrl === 'string') {
return canonicalUrl
}

return false
Expand Down

0 comments on commit fbf5e5d

Please sign in to comment.