SEO
This commit is contained in:
@@ -50,6 +50,10 @@ export default {
|
||||
authorV2 {
|
||||
name
|
||||
},
|
||||
seo {
|
||||
title,
|
||||
description
|
||||
}
|
||||
image (maxWidth: 2000) {
|
||||
altText,
|
||||
originalSrc
|
||||
@@ -63,6 +67,14 @@ export default {
|
||||
article: response.data.data.blogByHandle.articleByHandle
|
||||
}
|
||||
})
|
||||
},
|
||||
head () {
|
||||
return {
|
||||
title: this.article.seo.title,
|
||||
meta: [
|
||||
{ hid: 'description', name: 'description', content: this.article.seo.description }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -54,6 +54,11 @@ export default {
|
||||
blog: response.data.data.blogByHandle
|
||||
}
|
||||
})
|
||||
},
|
||||
head () {
|
||||
return {
|
||||
title: this.$store.state.shop.name + ' | ' + this.blog.title
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user