Add new btn

This commit is contained in:
samaradel
2021-04-20 13:01:27 +02:00
parent f751400d2c
commit 3818732a65
4 changed files with 53 additions and 22 deletions

View File

@@ -85,11 +85,17 @@ export default {
return res;
},
getImg() {
let img = "";
let image = "";
if (process.isClient) {
img = `${window.location.origin}${this.$page.markdownPage.metaImg.src}`;
image = `${window.location.origin}${this.img}`;
}
return img;
return image;
},
img() {
if (!this.$page.markdownPage.metaImg) return "";
if (this.$page.markdownPage.metaImg.src)
return this.$page.markdownPage.metaImg.src;
return this.$page.markdownPage.metaImg;
},
},
metaInfo() {