Skip to content

Commit

Permalink
fix: hotfix, see alex-shpak/hugo-book#528
Browse files Browse the repository at this point in the history
  • Loading branch information
ntk148v committed Aug 17, 2023
1 parent 6c62e98 commit bea9710
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions assets/search-data.json
Original file line number Diff line number Diff line change
@@ -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 }},
Expand Down

1 comment on commit bea9710

@ntk148v
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Close #3

Please sign in to comment.