diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-16 19:04:22 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-16 19:04:22 +0200 |
| commit | 296c8c986e0cb546f85b8b977d3fd292ece257c6 (patch) | |
| tree | 931f62a1b7868bbe2845f455b17877fa970848d0 | |
| parent | 19168847a02e2ab66c1e89536a55536e4bc99ac3 (diff) | |
| download | gohugo-theme-ed-296c8c986e0cb546f85b8b977d3fd292ece257c6.tar.gz | |
Code cleanup
| -rw-r--r-- | layouts/shortcodes/form-search.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/shortcodes/form-search.html b/layouts/shortcodes/form-search.html index 873c73a..f35a876 100644 --- a/layouts/shortcodes/form-search.html +++ b/layouts/shortcodes/form-search.html @@ -28,11 +28,11 @@ {{- $lunrSearch := slice (resources.Get "js/vendor/lunr.js") -}} {{- /* Add lunr multilanguage support. */ -}} -{{- $lunrSearch = $lunrSearch | append (resources.Get "js/vendor/lunr.multi.js" ) -}} -{{- $lunrSearch = $lunrSearch | append (resources.Get "js/vendor/lunr.stemmer.support.js" ) -}} +{{- $lunrSearch = $lunrSearch | append (resources.Get "js/vendor/lunr.multi.js") -}} +{{- $lunrSearch = $lunrSearch | append (resources.Get "js/vendor/lunr.stemmer.support.js") -}} {{- $lunrLangs := slice "de" "es" "fr" "it" "pt" "ru" -}} {{- range $lunrLangs -}} - {{ $lunrSearch = $lunrSearch | append (resources.Get (printf "js/vendor/lunr.%s.js" .) ) -}} + {{ $lunrSearch = $lunrSearch | append (resources.Get (printf "js/vendor/lunr.%s.js" .)) -}} {{- end -}} {{- /* Build lunr. */ -}} |
