test twitter meta

This commit is contained in:
samaradel
2021-08-19 15:23:55 +02:00
parent 191a149b46
commit b5c4cffeda

View File

@@ -242,6 +242,13 @@ export default {
return image;
},
},
computed: {
metaImg() {
if (process.isClient) {
return window.location.origin + this.img(this.$page.blog.image);
}
},
},
metaInfo() {
return {
title: "",
@@ -265,8 +272,7 @@ export default {
{
key: "og:image",
property: "og:image",
content:
`${window.location.origin}` + this.img(this.$page.blog.image),
content: this.metaImg(),
},
{
name: "twitter:description",
@@ -276,8 +282,7 @@ export default {
{
name: "twitter:image",
property: "twitter:image",
content:
`${window.location.origin}` + this.img(this.$page.blog.image),
content: this.metaImg(),
},
{
name: "twitter:title",