From 6e5d35a5abb40488c49531db171b822c1cb1f537 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Thu, 12 Mar 2020 10:58:52 +0100 Subject: #179, Also include sections to search --- assets/search-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assets') diff --git a/assets/search-data.js b/assets/search-data.js index 2fe0e02..859e6ad 100644 --- a/assets/search-data.js +++ b/assets/search-data.js @@ -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 }}', -- cgit v1.2.3