Fix meta
This commit is contained in:
@@ -375,16 +375,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
metadata {
|
||||||
|
siteUrl
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</page-query>
|
</page-query>
|
||||||
|
|
||||||
<static-query>
|
|
||||||
query {
|
|
||||||
metadata {
|
|
||||||
siteUrl
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</static-query>
|
|
||||||
<script>
|
<script>
|
||||||
import Header from "~/components/marketing/sections/cta-sections/Header.vue";
|
import Header from "~/components/marketing/sections/cta-sections/Header.vue";
|
||||||
import SolutionsHeader from "~/components/custom/sections/header/HeaderSection.vue";
|
import SolutionsHeader from "~/components/custom/sections/header/HeaderSection.vue";
|
||||||
@@ -430,12 +425,16 @@ export default {
|
|||||||
HorizontalScroll,
|
HorizontalScroll,
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
getImg() {
|
getCoverImage() {
|
||||||
let img = "";
|
let coverImage = "";
|
||||||
if (process.isClient) {
|
const cover = this.$page.markdownPage.metaImg;
|
||||||
img = `${window.location.origin}${this.$page.markdownPage.metaImg}`;
|
if (cover != null) {
|
||||||
|
coverImage = `${this.getBaseUrl}${this.$page.markdownPage.metaImg}`;
|
||||||
}
|
}
|
||||||
return img;
|
return coverImage;
|
||||||
|
},
|
||||||
|
getBaseUrl() {
|
||||||
|
return this.$page.metadata.siteUrl;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
metaInfo() {
|
metaInfo() {
|
||||||
@@ -461,23 +460,28 @@ export default {
|
|||||||
{
|
{
|
||||||
key: "og:image",
|
key: "og:image",
|
||||||
property: "og:image",
|
property: "og:image",
|
||||||
content: this.getImg,
|
content: this.getCoverImage,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: "twitter:description",
|
|
||||||
name: "twitter:description",
|
name: "twitter:description",
|
||||||
|
property: "twitter:description",
|
||||||
content: this.$page.markdownPage.metaDesc,
|
content: this.$page.markdownPage.metaDesc,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: "twitter:image",
|
name: "twitter:image",
|
||||||
property: "twitter:image",
|
property: "twitter:image",
|
||||||
content: this.getImg,
|
content: this.getCoverImage,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: "twitter:title",
|
name: "twitter:title",
|
||||||
property: "twitter:title",
|
property: "twitter:title",
|
||||||
content: this.$page.markdownPage.metaTitle,
|
content: this.$page.markdownPage.metaTitle,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "twitter:card",
|
||||||
|
property: "twitter:card",
|
||||||
|
content: "summary_large_image",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user