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
No known key found for this signature in database
GPG Key ID: 0F1C4A096E857E49
1 changed files with 3 additions and 0 deletions

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") }}