From d39edd0a30d559fb9d792481c9c3b45760408722 Mon Sep 17 00:00:00 2001 From: Ahmed M Alaa Date: Wed, 5 Apr 2023 21:37:25 +0200 Subject: making twitter cards optional, but on by default --- templates/base.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templates/base.html') diff --git a/templates/base.html b/templates/base.html index 8c737df..9206b87 100644 --- a/templates/base.html +++ b/templates/base.html @@ -60,7 +60,8 @@ {% if description %}{% endif %} {% if image %}{% endif %} - {% if config.extra.twitter %} + {% set twitter_card = config.extra.twitter_card | default(value=true) %} + {% if twitter_card != false %} {% if title %}{% endif %} -- cgit v1.2.3