Update og img and rename farm btn

This commit is contained in:
samaradel
2021-11-17 10:49:47 +02:00
parent 69fffa4317
commit 8266505036
5 changed files with 6 additions and 57 deletions

View File

@@ -426,11 +426,7 @@ export default {
},
computed: {
getCoverImage() {
let coverImage = "";
const cover = this.$page.markdownPage.metaImg;
if (cover != null) {
coverImage = `${this.getBaseUrl}${this.$page.markdownPage.metaImg}`;
}
let coverImage = require(`!!assets-loader!@images/${this.$page.markdownPage.metaImg}`);
return coverImage;
},
getBaseUrl() {
@@ -460,7 +456,7 @@ export default {
{
key: "og:image",
property: "og:image",
content: this.getCoverImage,
content: this.getCoverImage.src,
},
{
name: "twitter:description",
@@ -470,7 +466,7 @@ export default {
{
name: "twitter:image",
property: "twitter:image",
content: this.getCoverImage,
content: this.getCoverImage.src,
},
{
name: "twitter:title",
@@ -495,12 +491,4 @@ export default {
margin-right: auto;
margin-left: auto;
}
</style>
<!-- <div class="container-fluid sm:pxi-0 mx-auto overflow-x-hidden">
<g-image
v-if="$page.markdownPage.solution_image"
:src="$page.markdownPage.solution_image.src"
/>
</div> -->
</style>