Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/h-enk/doks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2022-06-25 14:59:06 +0300
committerJames Elliott <james-d-elliott@users.noreply.github.com>2022-06-25 15:03:35 +0300
commit8588fe5b16838d9c848102b4b16d59cf12ec5359 (patch)
tree4cda12e66015b4fac1beff88ac3fdf8cf3633277
parent76d7db7b4c3514cebfd1631a2fdb29234b400221 (diff)
feat: handle homepage for search sections index
-rw-r--r--assets/js/index.js3
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") }}