From 7b52bf423214194ab39392db6e9bc2de9d36a02d Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Sun, 10 Nov 2019 14:35:07 +0100 Subject: #87, Add support for multilang search index generation --- assets/search-data.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'assets/search-data.js') 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', -- cgit v1.2.3