From 5de4c117304246ca147c12c56705486eade012e7 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Wed, 29 Jul 2020 13:58:21 +0100 Subject: [PATCH] fix: search for index of Book type --- layouts/index.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/index.json b/layouts/index.json index e3de4de3..4c216070 100644 --- a/layouts/index.json +++ b/layouts/index.json @@ -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) -}}