feat: handle homepage for search sections index

This commit is contained in:
James Elliott
2022-06-25 21:59:06 +10:00
parent 76d7db7b4c
commit 8588fe5b16

View File

@ -100,6 +100,9 @@ Source:
{{- $list = .Site.Pages }}
{{- else }}
{{- $list = (where .Site.Pages "Type" "in" .Site.Params.options.searchSectionsIndex) }}
{{- if (in .Site.Params.options.searchSectionsIndex "HomePage") }}
{{ $list = $list | append .Site.Home }}
{{- end }}
{{- end }}
{{- else }}
{{- $list = (where .Site.Pages "Section" "docs") }}