From bea9710f71db729aaf16556e1a6884bc6de77776 Mon Sep 17 00:00:00 2001 From: Kien Nguyen Date: Thu, 17 Aug 2023 15:14:24 +0700 Subject: [PATCH] fix: hotfix, see https://github.com/alex-shpak/hugo-book/issues/528 --- assets/search-data.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/search-data.json b/assets/search-data.json index a1f24ab..74fdfe5 100644 --- a/assets/search-data.json +++ b/assets/search-data.json @@ -1,8 +1,10 @@ [ {{- $pages := where .Site.Pages "Kind" "in" (slice "page" "section") -}} {{- $pages = where $pages "Params.booksearchexclude" "!=" true -}} - {{- $pages = where $pages "Content" "not in" (slice nil "") -}} - + {{/* Remove until we know why it does not work, see https://github.com/alex-shpak/hugo-book/issues/528 */}} + {{/*- $pages = where $pages "Content" "not in" (slice nil "") -*/}} + {{- $pages = where $pages "Content" "!=" "" -}} + {{ range $index, $page := $pages }} {{ if gt $index 0}},{{end}} { "id": {{ $index }},