#179, Also include sections to search

This commit is contained in:
Alex Shpak 2020-03-12 10:58:52 +01:00
parent 5ba88ccad5
commit 6e5d35a5ab

View File

@ -16,7 +16,7 @@
const index = FlexSearch.create('balance', indexCfg);
window.bookSearchIndex = index;
{{ range $index, $page := .Site.RegularPages }}
{{ range $index, $page := where .Site.Pages "Kind" "in" (slice "page" "section") }}
index.add({
'id': {{ $index }},
'href': '{{ $page.RelPermalink }}',