test twitter meta
This commit is contained in:
@@ -242,6 +242,13 @@ 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: "",
|
||||||
@@ -265,8 +272,7 @@ export default {
|
|||||||
{
|
{
|
||||||
key: "og:image",
|
key: "og:image",
|
||||||
property: "og:image",
|
property: "og:image",
|
||||||
content:
|
content: this.metaImg(),
|
||||||
`${window.location.origin}` + this.img(this.$page.blog.image),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "twitter:description",
|
name: "twitter:description",
|
||||||
@@ -276,8 +282,7 @@ export default {
|
|||||||
{
|
{
|
||||||
name: "twitter:image",
|
name: "twitter:image",
|
||||||
property: "twitter:image",
|
property: "twitter:image",
|
||||||
content:
|
content: this.metaImg(),
|
||||||
`${window.location.origin}` + this.img(this.$page.blog.image),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "twitter:title",
|
name: "twitter:title",
|
||||||
|
|||||||
Reference in New Issue
Block a user