Skip to content

Commit

Permalink
fix: Search index should include sections & co. if these have content (
Browse files Browse the repository at this point in the history
  • Loading branch information
palant authored Jun 7, 2020
1 parent cf603f3 commit e2948b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/index.searchindex.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[
{{- range $index, $page := .Site.RegularPages -}}
{{- range $index, $page := where .Site.Pages "Content" "ne" ("" | safeHTML) -}}
{{- if gt $index 0 -}}
,
{{- end -}}
Expand Down

0 comments on commit e2948b2

Please sign in to comment.