mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-22 03:19:25 +00:00
#528: hotfix for search, until we find a reason
This commit is contained in:
parent
12de4671e3
commit
26fee5551f
@ -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}} {
|
||||||
|
Loading…
Reference in New Issue
Block a user