diff --git a/ogp.js b/ogp.js index ecc8fba..951bd55 100644 --- a/ogp.js +++ b/ogp.js @@ -67,6 +67,7 @@ class OpenGraph { view.title = (this.title.length != 0) ? `` : ''; view.site = (this.author.length != 0) ? `` : ''; view.color = (this.color.length != 0) ? `` : ''; + view.card = !this.type.includes('video') ? `` : ''; return Mustache.render(html, view); } @@ -78,12 +79,14 @@ const html = ` ass - {{{title}}} - {{{site}}} + {{{title}}} + {{{site}}} {{{color}}} - + {{{card}}} - ass + + ass + `;