#528: hotfix for search, until we find a reason

This commit is contained in:
Alex Shpak 2023-04-24 15:40:30 +02:00
parent 12de4671e3
commit 26fee5551f
3 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,9 @@
[ [
{{- $pages := where .Site.Pages "Kind" "in" (slice "page" "section") -}} {{- $pages := where .Site.Pages "Kind" "in" (slice "page" "section") -}}
{{- $pages = where $pages "Params.booksearchexclude" "!=" true -}} {{- $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 }} {{ range $index, $page := $pages }}
{{ if gt $index 0}},{{end}} { {{ if gt $index 0}},{{end}} {