feat: handle homepage for search sections index
This commit is contained in:
parent
76d7db7b4c
commit
8588fe5b16
|
@ -100,6 +100,9 @@ Source:
|
||||||
{{- $list = .Site.Pages }}
|
{{- $list = .Site.Pages }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- $list = (where .Site.Pages "Type" "in" .Site.Params.options.searchSectionsIndex) }}
|
{{- $list = (where .Site.Pages "Type" "in" .Site.Params.options.searchSectionsIndex) }}
|
||||||
|
{{- if (in .Site.Params.options.searchSectionsIndex "HomePage") }}
|
||||||
|
{{ $list = $list | append .Site.Home }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- $list = (where .Site.Pages "Section" "docs") }}
|
{{- $list = (where .Site.Pages "Section" "docs") }}
|
||||||
|
|
Loading…
Reference in New Issue