From 59c481b068d0a53d443ab9e3514c2ab995b47de6 Mon Sep 17 00:00:00 2001 From: zzossig Date: Thu, 11 Jun 2020 14:07:09 +0900 Subject: [PATCH] [enhancement] Don't include fuse.js file when search diabled fix #253 --- layouts/partials/head/scripts.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/layouts/partials/head/scripts.html b/layouts/partials/head/scripts.html index 0006285..947d459 100644 --- a/layouts/partials/head/scripts.html +++ b/layouts/partials/head/scripts.html @@ -8,12 +8,15 @@ {{ end }} {{ end }} +{{ if $.Param "enableSearch" }} + {{ $fuse := resources.Get "js/fuse.min.js" | resources.Fingerprint }} + +{{ end }} + {{ $enquire := resources.Get "js/enquire.min.js" | resources.Fingerprint }} {{ $lazysizes := resources.Get "js/lazysizes.min.js" | resources.Fingerprint }} -{{ $fuse := resources.Get "js/fuse.min.js" | resources.Fingerprint }} - {{ $getParents := resources.Get "js/helper/getParents.js" | resources.Minify | resources.Fingerprint }} {{ $fadeinout := resources.Get "js/helper/fadeinout.js" | resources.Minify | resources.Fingerprint }}