From 8588fe5b16838d9c848102b4b16d59cf12ec5359 Mon Sep 17 00:00:00 2001 From: James Elliott Date: Sat, 25 Jun 2022 21:59:06 +1000 Subject: [PATCH] feat: handle homepage for search sections index --- assets/js/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/js/index.js b/assets/js/index.js index 0c2de5d..15e09bb 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -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") }}