aboutsummaryrefslogtreecommitdiff
path: root/assets/search-data.js
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2019-11-10 14:35:07 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-11-16 20:35:23 +0100
commit7b52bf423214194ab39392db6e9bc2de9d36a02d (patch)
treec555a7ca3203a2446a90f345ae37585657dd306d /assets/search-data.js
parent05c3b8fac9bec7cf54fed20d93fac52e1e97ad97 (diff)
#87, Add support for multilang search index generation
Diffstat (limited to 'assets/search-data.js')
-rw-r--r--assets/search-data.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/assets/search-data.js b/assets/search-data.js
index a3fd51b..9c7f6a9 100644
--- a/assets/search-data.js
+++ b/assets/search-data.js
@@ -2,8 +2,10 @@
(function() {
const indexCfg = {{ with .Site.Params.BookSearchConfig }}
- {{ . }}
- {{ end }};
+ {{ . }};
+ {{ else }}
+ {};
+ {{ end }}
indexCfg.doc = {
id: 'id',