diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-06 01:47:49 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-06 01:48:26 +0200 |
| commit | c7ed98af94b9e59ec3233bae562ae3741c6cd906 (patch) | |
| tree | 4c2f4815bfb40a866f4df3f91bcaab271e526cee /layouts/partials/scripts.html | |
| parent | 674415135175f22378388f13c6012f03587ee20d (diff) | |
| download | gohugo-theme-ed-c7ed98af94b9e59ec3233bae562ae3741c6cd906.tar.gz | |
Move lunr.js to search form
Diffstat (limited to 'layouts/partials/scripts.html')
| -rw-r--r-- | layouts/partials/scripts.html | 9 |
1 files changed, 1 insertions, 8 deletions
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 -}} |
