forked from gitbot/hugo-book
#179, Use only regular pages for search index
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