From 26fee5551fa640bc983f882c6f343c6f8cd47205 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Mon, 24 Apr 2023 15:40:30 +0200 Subject: [PATCH] #528: hotfix for search, until we find a reason --- assets/search-data.json | 4 +++- ...ent => book.scss_e129fe35b8d0a70789c8a08429469073.content} | 0 ...f.json => book.scss_e129fe35b8d0a70789c8a08429469073.json} | 0 3 files changed, 3 insertions(+), 1 deletion(-) rename exampleSite/resources/_gen/assets/scss/{book.scss_50fc8c04e12a2f59027287995557ceff.content => book.scss_e129fe35b8d0a70789c8a08429469073.content} (100%) rename exampleSite/resources/_gen/assets/scss/{book.scss_50fc8c04e12a2f59027287995557ceff.json => book.scss_e129fe35b8d0a70789c8a08429469073.json} (100%) diff --git a/assets/search-data.json b/assets/search-data.json index 9a137c3..0348cbe 100644 --- a/assets/search-data.json +++ b/assets/search-data.json @@ -1,7 +1,9 @@ [ {{- $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}} { diff --git a/exampleSite/resources/_gen/assets/scss/book.scss_50fc8c04e12a2f59027287995557ceff.content b/exampleSite/resources/_gen/assets/scss/book.scss_e129fe35b8d0a70789c8a08429469073.content similarity index 100% rename from exampleSite/resources/_gen/assets/scss/book.scss_50fc8c04e12a2f59027287995557ceff.content rename to exampleSite/resources/_gen/assets/scss/book.scss_e129fe35b8d0a70789c8a08429469073.content diff --git a/exampleSite/resources/_gen/assets/scss/book.scss_50fc8c04e12a2f59027287995557ceff.json b/exampleSite/resources/_gen/assets/scss/book.scss_e129fe35b8d0a70789c8a08429469073.json similarity index 100% rename from exampleSite/resources/_gen/assets/scss/book.scss_50fc8c04e12a2f59027287995557ceff.json rename to exampleSite/resources/_gen/assets/scss/book.scss_e129fe35b8d0a70789c8a08429469073.json