mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
fix: search for index of Book type
This commit is contained in:
parent
ca4f7b07ef
commit
5de4c11730
1 changed files with 2 additions and 1 deletions
|
@ -1,8 +1,9 @@
|
|||
{{- /* Generate the search index. */ -}}
|
||||
{{- $index := slice -}}
|
||||
{{- $pages := site.RegularPages -}}
|
||||
{{- /* Add the index page of docs separately since it's not in RegularPages above. */ -}}
|
||||
{{- /* Add the index page of multi-page content separately since it's not in RegularPages above. */ -}}
|
||||
{{- $pages := $pages | union (where (where site.Pages "Kind" "section") "Type" "docs") -}}
|
||||
{{- $pages := $pages | union (where (where site.Pages "Kind" "section") "Type" "book") -}}
|
||||
{{- /* Add author pages to index so their bios can be searched. Hide empty `/authors/` node. */ -}}
|
||||
{{- $pages := $pages | union (where (where site.Pages "Section" "authors") "Params.superuser" "!=" nil) -}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue