diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-11-14 00:23:01 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-11-16 20:35:23 +0100 |
commit | 13584878c23146c7093c8d1b9150ff9a98d28c8b (patch) | |
tree | cc3aabd06040a8879a27881e62afa3ec52e85392 /layouts/partials/docs/html-head.html | |
parent | 7b52bf423214194ab39392db6e9bc2de9d36a02d (diff) |
Polish multilang mode, update docs
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 c3a692f..153ab35 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 }} -{{- $searchJSFile := printf "%s.%s" .Language.Lang "search.js" -}} +{{- .Scratch.Set "bookSearchConfig" (i18n "bookSearchConfig") -}}} <!-- Remove after https://github.com/gohugoio/hugo/issues/6331 --> +{{- $searchJSFile := printf "%s.search.js" .Language.Lang -}} {{- $searchJS := resources.Get "search.js" | resources.ExecuteAsTemplate $searchJSFile . | resources.Minify | resources.Fingerprint }} <script defer src="{{ $searchJS.RelPermalink }}" integrity="{{ $searchJS.Data.Integrity }}"></script> {{ end }} |