diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-11-10 14:35:07 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-11-16 20:35:23 +0100 |
commit | 7b52bf423214194ab39392db6e9bc2de9d36a02d (patch) | |
tree | c555a7ca3203a2446a90f345ae37585657dd306d /layouts/partials/docs/html-head.html | |
parent | 05c3b8fac9bec7cf54fed20d93fac52e1e97ad97 (diff) |
#87, Add support for multilang search index generation
Diffstat (limited to 'layouts/partials/docs/html-head.html')
-rw-r--r-- | layouts/partials/docs/html-head.html | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ <link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}"> {{ 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 }} <script defer src="{{ $searchJS.RelPermalink }}" integrity="{{ $searchJS.Data.Integrity }}"></script> {{ end }} |