diff --git a/views/includes/meta_post.pug b/views/includes/meta_post.pug index 2210e63..1577ab5 100644 --- a/views/includes/meta_post.pug +++ b/views/includes/meta_post.pug @@ -7,11 +7,14 @@ if !post.has_media meta(property='og:type', content='image') each item in post.gallery_items meta(property='og:image', content='' + item.large) - if post.images - meta(property='twitter:card', content='summary_large_image') - meta(property='og:type', content='image') - meta(property='og:image', content='' + post.images.source) - meta(property='og:image:url', content='' + post.images.source) + else + if post.images + meta(property='twitter:card', content='summary_large_image') + meta(property='og:type', content='image') + meta(property='og:image', content='' + post.images.source) + meta(property='og:image:url', content='' + post.images.source) + else + include meta_logo.pug else if post.media if post.media.not_hosted_in_reddit @@ -35,4 +38,6 @@ else meta(property='twitter:card', content='player') meta(property='og:type', content='video') meta(property='og:video', content='' + post.media.source) - meta(property='og:video:type', content='video/mp4') \ No newline at end of file + meta(property='og:video:type', content='video/mp4') + else + include meta_logo.pug