From 13584878c23146c7093c8d1b9150ff9a98d28c8b Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Thu, 14 Nov 2019 00:23:01 +0100 Subject: Polish multilang mode, update docs --- layouts/partials/docs/html-head.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'layouts/partials/docs/html-head.html') diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index c3a692f..153ab35 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 }} -{{- $searchJSFile := printf "%s.%s" .Language.Lang "search.js" -}} +{{- .Scratch.Set "bookSearchConfig" (i18n "bookSearchConfig") -}}} +{{- $searchJSFile := printf "%s.search.js" .Language.Lang -}} {{- $searchJS := resources.Get "search.js" | resources.ExecuteAsTemplate $searchJSFile . | resources.Minify | resources.Fingerprint }} {{ end }} -- cgit v1.2.3