Allow disabling the share preview card (fixes #122)
This commit is contained in:
@ -178,6 +178,8 @@ csp = [
|
|||||||
{ directive = "base-uri", domains = ["'none'"] },
|
{ directive = "base-uri", domains = ["'none'"] },
|
||||||
{ directive = "form-action", domains = ["'none'"] }
|
{ directive = "form-action", domains = ["'none'"] }
|
||||||
]
|
]
|
||||||
|
# Uncomment this to disable the card displayed in share previews
|
||||||
|
# card = false
|
||||||
|
|
||||||
[extra.nav]
|
[extra.nav]
|
||||||
# Whether to automatically hide nav when not hovered or focused
|
# Whether to automatically hide nav when not hovered or focused
|
||||||
|
@ -119,6 +119,8 @@
|
|||||||
<meta property="og:title" content="{% include 'partials/title.html' %}" />
|
<meta property="og:title" content="{% include 'partials/title.html' %}" />
|
||||||
<meta property="og:url" content="{{ current_url | default(value='/') | safe }}" />
|
<meta property="og:url" content="{{ current_url | default(value='/') | safe }}" />
|
||||||
<meta property="og:description" content="{% include 'partials/description.html' %}" />
|
<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) }}" />
|
<meta property="og:locale" content="{{ macros_translate::translate(key='date_locale', default='en_US', language_strings=language_strings) }}" />
|
||||||
</head>
|
</head>
|
||||||
|
Reference in New Issue
Block a user