From fe079da67b4a067b982ad0cc7238c445a2b0006b Mon Sep 17 00:00:00 2001 From: daudix Date: Sun, 30 Mar 2025 07:45:49 +0300 Subject: [PATCH] Allow disabling the share preview card (fixes #122) --- config.toml | 2 ++ templates/partials/head.html | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config.toml b/config.toml index 30687bd..36d7f32 100644 --- a/config.toml +++ b/config.toml @@ -178,6 +178,8 @@ csp = [ { directive = "base-uri", domains = ["'none'"] }, { directive = "form-action", domains = ["'none'"] } ] +# Uncomment this to disable the card displayed in share previews +# card = false [extra.nav] # Whether to automatically hide nav when not hovered or focused diff --git a/templates/partials/head.html b/templates/partials/head.html index 8b64a98..01475f6 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -119,6 +119,8 @@ - + {%- if config.extra.card is not defined or config.extra.card != false -%} + + {%- endif -%}