#179, Use only regular pages for search index

This commit is contained in:
Alex Shpak 2020-03-11 23:16:15 +01:00
parent 392f75d2c7
commit 5ba88ccad5

View file

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