From 7b52bf423214194ab39392db6e9bc2de9d36a02d Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Sun, 10 Nov 2019 14:35:07 +0100 Subject: #87, Add support for multilang search index generation --- layouts/partials/docs/html-head.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'layouts/partials') diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index 28815a1..c3a692f 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -10,7 +10,8 @@ {{ if default true .Site.Params.BookSearch }} -{{- $searchJS := resources.Get "search.js" | resources.ExecuteAsTemplate "search.js" . | resources.Minify | resources.Fingerprint }} +{{- $searchJSFile := printf "%s.%s" .Language.Lang "search.js" -}} +{{- $searchJS := resources.Get "search.js" | resources.ExecuteAsTemplate $searchJSFile . | resources.Minify | resources.Fingerprint }} {{ end }} -- cgit v1.2.3