Skip to content

Commit

Permalink
#528: hotfix for search, until we find a reason
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-shpak committed Apr 24, 2023
1 parent 12de467 commit 26fee55
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/search-data.json
Original file line number Diff line number Diff line change
@@ -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}} {
Expand Down

0 comments on commit 26fee55

Please sign in to comment.