support multiple og:image tags (#2305)

This commit is contained in:
snek
2023-12-27 09:13:53 -08:00
committed by GitHub
parent b5d53ef0b9
commit 929987f806
2 changed files with 8 additions and 2 deletions
+3 -1
View File
@@ -25,8 +25,10 @@
<meta name="description" content="{{ postView.Record.Val.Text }}">
<meta property="og:description" content="{{ postView.Record.Val.Text }}">
{% endif -%}
{%- if imgThumbUrl %}
{%- if imgThumbUrls %}
{% for imgThumbUrl in imgThumbUrls %}
<meta property="og:image" content="{{ imgThumbUrl }}">
{% endfor %}
<meta name="twitter:card" content="summary_large_image">
{%- elif postView.Author.Avatar %}
{# Don't use avatar image in cards; usually looks bad #}