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

github.com/chipzoller/hugo-clarity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorweru <fromweru@gmail.com>2022-03-25 02:39:55 +0300
committerweru <fromweru@gmail.com>2022-03-25 02:39:55 +0300
commitc57076ca685fdd645095e72b2808fa463d23c658 (patch)
treed3fbb91b1eee5238758e7f1d7e54ecae2eda554a
parent979aac28af507ebf1c06bb114148610984c9d90d (diff)
fix: disable search by default #49
Signed-off-by: weru <fromweru@gmail.com>
-rw-r--r--layouts/partials/search/scripts.html2
-rw-r--r--layouts/partials/search/widget.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/search/scripts.html b/layouts/partials/search/scripts.html
index 42efeae..a93130a 100644
--- a/layouts/partials/search/scripts.html
+++ b/layouts/partials/search/scripts.html
@@ -1,5 +1,5 @@
{{- $params := site.Params }}
-{{- if default $params.enableSearch true }}
+{{- if $params.enableSearch }}
{{- $fusePath := "js/fuse.js" }}
{{- $fuse := resources.Get $fusePath | resources.ExecuteAsTemplate $fusePath . }}
diff --git a/layouts/partials/search/widget.html b/layouts/partials/search/widget.html
index 733cebb..afcc0d2 100644
--- a/layouts/partials/search/widget.html
+++ b/layouts/partials/search/widget.html
@@ -1,5 +1,5 @@
{{- $params := site.Params }}
-{{- if default site.Params.enableSearch true }}
+{{- if site.Params.enableSearch }}
{{- $placeholder := T "search_field_placeholder" }}
{{- $section := $.Page.Section }}
{{- $simple := true }}