From c7ed98af94b9e59ec3233bae562ae3741c6cd906 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Wed, 6 Jul 2022 01:47:49 +0200 Subject: Move lunr.js to search form --- layouts/partials/scripts.html | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'layouts/partials/scripts.html') diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index e931587..137cae2 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -1,17 +1,10 @@ {{- $vendors := slice -}} -{{- $vendorNames := slice "jquery.js" "lunr.js" -}} +{{- $vendorNames := slice "jquery.js" -}} {{- range $vendorNames -}} {{ $vendors = $vendors | append (resources.Get (printf "js/vendor/%s" .) ) }} {{- end -}} -{{- $vendors = $vendors | append (resources.Get "js/vendor/lunr.stemmer.support.js" ) -}} -{{- $lunrLangs := slice "de" "es" "fr" "it" "pt" "ru" -}} -{{- range $lunrLangs -}} - {{ $vendors = $vendors | append (resources.Get (printf "js/vendor/lunr.%s.js" .) ) }} -{{- end -}} -{{- $vendors = $vendors | append (resources.Get "js/vendor/lunr.multi.js" ) -}} - {{- $vendors = $vendors | resources.Concat "js/vendor-bundle.js" -}} {{- if or (eq (getenv "HUGO_ENV") "production") (eq site.Params.env "production") }} {{- $vendors = $vendors | minify -}} -- cgit v1.2.3