From 7d63947cdfac918d22119b892039d40630c6ef8e Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Thu, 1 Jun 2023 10:44:30 +0200 Subject: [PATCH] Alleen scripts laden als bepaalde termen in de titel van de pagina staan, zoals zoekresultaten --- themes/nluug/layouts/_default/baseof.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/nluug/layouts/_default/baseof.html b/themes/nluug/layouts/_default/baseof.html index 8eabd36..8daef04 100644 --- a/themes/nluug/layouts/_default/baseof.html +++ b/themes/nluug/layouts/_default/baseof.html @@ -47,6 +47,8 @@ {{ partial "footer.html" . }} - {{ partialCached "scripts_loadlast.html" . }} + {{ if findRE `[zZ]oek|[sS]earch` .Title 1 }} + {{ partialCached "scripts_loadlast.html" . }} + {{ end }}