diff options
author | weru <fromweru@gmail.com> | 2022-03-25 02:39:55 +0300 |
---|---|---|
committer | weru <fromweru@gmail.com> | 2022-03-25 02:39:55 +0300 |
commit | c57076ca685fdd645095e72b2808fa463d23c658 (patch) | |
tree | d3fbb91b1eee5238758e7f1d7e54ecae2eda554a | |
parent | 979aac28af507ebf1c06bb114148610984c9d90d (diff) |
fix: disable search by default #49
Signed-off-by: weru <fromweru@gmail.com>
-rw-r--r-- | layouts/partials/search/scripts.html | 2 | ||||
-rw-r--r-- | layouts/partials/search/widget.html | 2 |
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 }} |