aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2020-03-12 10:58:52 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2020-03-12 10:58:52 +0100
commit6e5d35a5abb40488c49531db171b822c1cb1f537 (patch)
tree9009b85b19367f6f0f2ab8ad68679a2767ad54dd
parent5ba88ccad5249a80ae4abea3b6a072b896e3a7c0 (diff)
#179, Also include sections to search
-rw-r--r--assets/search-data.js2
1 files changed, 1 insertions, 1 deletions
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 }}',