{{ if $.Param "enableSearch" }} {{ $lunr := resources.Get "js/lunr.min.js" | resources.Fingerprint }} {{ $stemmer := .Site.Data.lib.js.stemmer }} {{ printf "" $stemmer.url $stemmer.sri $stemmer.code | safeHTML }} {{ $multi := .Site.Data.lib.js.multi_language }} {{ printf "" $multi.url $multi.sri $multi.code | safeHTML }} {{ $searchLanguages := .Site.Params.searchLanguages }} {{ range .Site.Data.lib.lunr }} {{ if in $searchLanguages .code }} {{ printf "" .url .sri .code | safeHTML }} {{ end }} {{ end }} {{ end }}