diff --git a/lib/app/root-mixins/updateMeta.js b/lib/app/root-mixins/updateMeta.js index ff2703acfe..9522722b59 100644 --- a/lib/app/root-mixins/updateMeta.js +++ b/lib/app/root-mixins/updateMeta.js @@ -12,7 +12,10 @@ export default { this.currentMetaTags = new Set() const updateMeta = () => { - document.title = this.$title + const title = this.$title.match(/\<.*\/\>/) + ? this.$title.replace(/^(\<.*\/\>)/, '') + : this.$title + document.title = title document.documentElement.lang = this.$lang const userMeta = this.$page.frontmatter.meta || [] const meta = userMeta.slice(0)