diff options
author | James Elliott <james-d-elliott@users.noreply.github.com> | 2022-06-25 14:59:06 +0300 |
---|---|---|
committer | James Elliott <james-d-elliott@users.noreply.github.com> | 2022-06-25 15:03:35 +0300 |
commit | 8588fe5b16838d9c848102b4b16d59cf12ec5359 (patch) | |
tree | 4cda12e66015b4fac1beff88ac3fdf8cf3633277 | |
parent | 76d7db7b4c3514cebfd1631a2fdb29234b400221 (diff) |
feat: handle homepage for search sections index
-rw-r--r-- | assets/js/index.js | 3 |
1 files changed, 3 insertions, 0 deletions
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") }} |