summaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2020-01-13 19:42:16 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2020-01-13 19:42:16 +0100
commit68f096fa4c69a72cde18eb07a716ff76c0900bea (patch)
tree3585cd51e7288f00bb312662fcf295cb8cfbfb44 /layouts/partials
parent134b7456b8075b5a1eed406b2e21d01ae9708e81 (diff)
Remove use of Scratch in search configuration
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/docs/html-head.html1
1 files changed, 0 insertions, 1 deletions
diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html
index b280ef9..0e6d06e 100644
--- a/layouts/partials/docs/html-head.html
+++ b/layouts/partials/docs/html-head.html
@@ -11,7 +11,6 @@
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}">
{{ if default true .Site.Params.BookSearch }}
-{{- .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>