Fix
This commit is contained in:
@@ -242,13 +242,6 @@ export default {
|
|||||||
return image;
|
return image;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
|
||||||
metaImg() {
|
|
||||||
if (process.isClient) {
|
|
||||||
return window.location.origin + this.img(this.$page.blog.image);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
metaInfo() {
|
metaInfo() {
|
||||||
return {
|
return {
|
||||||
title: "",
|
title: "",
|
||||||
@@ -272,7 +265,7 @@ export default {
|
|||||||
{
|
{
|
||||||
key: "og:image",
|
key: "og:image",
|
||||||
property: "og:image",
|
property: "og:image",
|
||||||
content: this.metaImg,
|
content: this.img(this.$page.blog.image),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "twitter:description",
|
name: "twitter:description",
|
||||||
@@ -282,7 +275,7 @@ export default {
|
|||||||
{
|
{
|
||||||
name: "twitter:image",
|
name: "twitter:image",
|
||||||
property: "twitter:image",
|
property: "twitter:image",
|
||||||
content: this.metaImg,
|
content: this.img(this.$page.blog.image),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "twitter:title",
|
name: "twitter:title",
|
||||||
@@ -295,6 +288,7 @@ export default {
|
|||||||
content: "summary_large_image",
|
content: "summary_large_image",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
script: [{ src: "https://platform.twitter.com/widgets.js", async: true }],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user