Remove og:image:url property for gallery posts

This commit is contained in:
redmt 2022-06-10 11:58:32 +02:00
parent 2a92f0a57d
commit 04395734cf
1 changed files with 2 additions and 3 deletions

View File

@ -2,15 +2,14 @@ doctype html
html
head
title #{cleanTitle(post.title)} : #{subreddit}
meta(property='og:title', content=cleanTitle(post.title) + ' : ' + subreddit)
meta(property='og:title', content=cleanTitle(post.title) + ' : r/' + subreddit)
meta(property='og:description', content='' + post.selftext)
meta(property='og:author_name', content='u/' + post.author)
if !post.has_media
if post.gallery
meta(property='twitter:card', content='summary_large_image')
each item in post.gallery_items
meta(property='og:image', content='' + item.thumbnail)
meta(property='og:image:url', content='' + item.large)
meta(property='og:image', content='' + item.large)
if post.images
meta(property='twitter:card', content='summary_large_image')
meta(property='og:image', content='' + post.images.source)