SEO
This commit is contained in:
@@ -109,6 +109,7 @@ export default {
|
|||||||
const productRoutes = response.data.data.products.edges
|
const productRoutes = response.data.data.products.edges
|
||||||
const CollectionRoutes = response.data.data.collections.edges
|
const CollectionRoutes = response.data.data.collections.edges
|
||||||
blogRoutes.forEach((blog) => {
|
blogRoutes.forEach((blog) => {
|
||||||
|
res.push('/blog/' + blog.node.handle)
|
||||||
blog.node.articles.edges.forEach((article) => {
|
blog.node.articles.edges.forEach((article) => {
|
||||||
res.push('/blog/' + blog.node.handle + '/article/' + article.node.handle)
|
res.push('/blog/' + blog.node.handle + '/article/' + article.node.handle)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -50,6 +50,10 @@ export default {
|
|||||||
authorV2 {
|
authorV2 {
|
||||||
name
|
name
|
||||||
},
|
},
|
||||||
|
seo {
|
||||||
|
title,
|
||||||
|
description
|
||||||
|
}
|
||||||
image (maxWidth: 2000) {
|
image (maxWidth: 2000) {
|
||||||
altText,
|
altText,
|
||||||
originalSrc
|
originalSrc
|
||||||
@@ -63,6 +67,14 @@ export default {
|
|||||||
article: response.data.data.blogByHandle.articleByHandle
|
article: response.data.data.blogByHandle.articleByHandle
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
head () {
|
||||||
|
return {
|
||||||
|
title: this.article.seo.title,
|
||||||
|
meta: [
|
||||||
|
{ hid: 'description', name: 'description', content: this.article.seo.description }
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -54,6 +54,11 @@ export default {
|
|||||||
blog: response.data.data.blogByHandle
|
blog: response.data.data.blogByHandle
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
head () {
|
||||||
|
return {
|
||||||
|
title: this.$store.state.shop.name + ' | ' + this.blog.title
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
+1
-1
@@ -90,7 +90,7 @@ export default {
|
|||||||
},
|
},
|
||||||
head () {
|
head () {
|
||||||
return {
|
return {
|
||||||
title: 'Home Page',
|
title: this.shop.name,
|
||||||
meta: [
|
meta: [
|
||||||
{ hid: 'description', name: 'description', content: this.description }
|
{ hid: 'description', name: 'description', content: this.description }
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -31,6 +31,11 @@ export default {
|
|||||||
policy: response.data.data.shop.privacyPolicy
|
policy: response.data.data.shop.privacyPolicy
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
head () {
|
||||||
|
return {
|
||||||
|
title: 'Privacy Policy'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -31,6 +31,11 @@ export default {
|
|||||||
policy: response.data.data.shop.refundPolicy
|
policy: response.data.data.shop.refundPolicy
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
head () {
|
||||||
|
return {
|
||||||
|
title: 'Refund Policy'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -31,6 +31,11 @@ export default {
|
|||||||
policy: response.data.data.shop.termsOfService
|
policy: response.data.data.shop.termsOfService
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
head () {
|
||||||
|
return {
|
||||||
|
title: 'Terms of services'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -94,6 +94,14 @@ export default {
|
|||||||
product: {},
|
product: {},
|
||||||
quantity: 1
|
quantity: 1
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
head () {
|
||||||
|
return {
|
||||||
|
title: this.$store.state.shop.name + ' | ' + this.product.title,
|
||||||
|
meta: [
|
||||||
|
{ hid: 'description', name: 'description', content: this.product.description }
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -26,6 +26,11 @@ export default {
|
|||||||
products () {
|
products () {
|
||||||
return this.$store.state.products
|
return this.$store.state.products
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
head () {
|
||||||
|
return {
|
||||||
|
title: this.$store.state.shop.name + ' | ' + 'Products'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user