mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-25 20:56:43 +00:00
#179, Use only regular pages for search index
This commit is contained in:
parent
392f75d2c7
commit
5ba88ccad5
@ -16,7 +16,7 @@
|
||||
const index = FlexSearch.create('balance', indexCfg);
|
||||
window.bookSearchIndex = index;
|
||||
|
||||
{{ range $index, $page := .Site.Pages }}
|
||||
{{ range $index, $page := .Site.RegularPages }}
|
||||
index.add({
|
||||
'id': {{ $index }},
|
||||
'href': '{{ $page.RelPermalink }}',
|
||||
|
Loading…
Reference in New Issue
Block a user