diff --git a/make_post_sell/templates/content.j2 b/make_post_sell/templates/content.j2 index e9153f1..f4acaee 100644 --- a/make_post_sell/templates/content.j2 +++ b/make_post_sell/templates/content.j2 @@ -7,12 +7,15 @@ + {%- set og_thumbnail = none %} {%- for thumbnail_key in ["thumbnail1", "thumbnail2", "thumbnail3", "thumbnail4"] %} - {%- if thumbnail_key in product.extensions %} - - {%- break %} + {%- if og_thumbnail is none and thumbnail_key in product.extensions %} + {%- set og_thumbnail = thumbnail_key %} {%- endif %} {%- endfor %} + {%- if og_thumbnail %} + + {%- endif %} {% if product.has_product_file and signed_get_object_url is not none %}