From d0a419afa13080ee622b128ed18623d2b620f1e9 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Mon, 15 Dec 2025 07:57:04 -0500 Subject: [PATCH] Add Twitter card meta tags for proper link unfurling on Matrix/Discord Links shared to Matrix/Discord were showing the logo instead of thumbnail1 because twitter:card and twitter:image meta tags were missing. Added complete Twitter card support (summary_large_image) plus og:url and og:site_name for better Open Graph compliance. --- make_post_sell/templates/content.j2 | 16 ++++++++-------- make_post_sell/templates/product.j2 | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/make_post_sell/templates/content.j2 b/make_post_sell/templates/content.j2 index a94f1d7..2a41cf2 100644 --- a/make_post_sell/templates/content.j2 +++ b/make_post_sell/templates/content.j2 @@ -7,14 +7,14 @@ - {%- set og_thumbnail = none %} - {%- for thumbnail_key in ["thumbnail1", "thumbnail2", "thumbnail3", "thumbnail4"] %} - {%- if og_thumbnail is none and thumbnail_key in product.extensions %} - {%- set og_thumbnail = thumbnail_key %} - {%- endif %} - {%- endfor %} - {%- if og_thumbnail %} - + + + {%- if "thumbnail1" in product.extensions %} + + + + + {%- endif %} {# Removed auto-refresh timer - better UX to let download links expire than interrupt reading #} diff --git a/make_post_sell/templates/product.j2 b/make_post_sell/templates/product.j2 index 9021aea..fce2c94 100644 --- a/make_post_sell/templates/product.j2 +++ b/make_post_sell/templates/product.j2 @@ -7,14 +7,14 @@ - {%- set og_thumbnail = none %} - {%- for thumbnail_key in ["thumbnail1", "thumbnail2", "thumbnail3", "thumbnail4"] %} - {%- if og_thumbnail is none and thumbnail_key in product.extensions %} - {%- set og_thumbnail = thumbnail_key %} - {%- endif %} - {%- endfor %} - {%- if og_thumbnail %} - + + + {%- if "thumbnail1" in product.extensions %} + + + + + {%- endif %} {# Removed auto-refresh timer - better UX to let download links expire than interrupt reading #}