Allow disabling the share preview card (fixes #122)

This commit is contained in:
daudix
2025-03-30 07:45:49 +03:00
parent af524137a9
commit fe079da67b
2 changed files with 5 additions and 1 deletions

View File

@ -119,6 +119,8 @@
<meta property="og:title" content="{% include 'partials/title.html' %}" />
<meta property="og:url" content="{{ current_url | default(value='/') | safe }}" />
<meta property="og:description" content="{% include 'partials/description.html' %}" />
<meta property="og:image" content="{% include 'partials/card.html' %}" />
{%- if config.extra.card is not defined or config.extra.card != false -%}
<meta property="og:image" content="{% include 'partials/card.html' %}" />
{%- endif -%}
<meta property="og:locale" content="{{ macros_translate::translate(key='date_locale', default='en_US', language_strings=language_strings) }}" />
</head>