feat(social-media-cards): use cache busting for cards

This commit is contained in:
welpo 2023-09-04 19:42:02 +02:00
parent e965aa45b3
commit a08dc78b50
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6

View file

@ -76,7 +76,7 @@
{# Image for social media sharing #}
{%- set social_media_card = macros_settings::evaluate_setting_priority(setting="social_media_card", page=page | default(value=""), section=section | default(value=""), default_global_value="") -%}
{% if social_media_card %}
<meta property="og:image" content="{{ get_url(path=social_media_card) }}" />
<meta property="og:image" content="{{ get_url(path=social_media_card, cachebust=true) }}" />
<meta name="twitter:card" content="summary_large_image" />
{% endif %}