From cab955dbea44371d653acd435f731aae328aaedb Mon Sep 17 00:00:00 2001 From: mst Date: Mon, 16 Dec 2024 16:46:30 +0300 Subject: [PATCH] don't add antispam scripts if antispam is not enabled --- templates/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/index.html b/templates/index.html index 6784d3e..450050e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,6 +3,7 @@ {% set homeLink = 'active' %} {% block additionalHeadItems %} +{% if cfg.antispam.enabled %} {% if cfg.antispam.type == 'recaptcha' %} {% elif cfg.antispam.type == 'turnstile' %} @@ -11,6 +12,7 @@ {% endif %} +{% endif %} {% endblock %} {% block content %}