diff options
author | Linlin Yan <yanlinlin82@gmail.com> | 2022-04-04 13:56:35 +0300 |
---|---|---|
committer | Linlin Yan <yanlinlin82@gmail.com> | 2022-04-04 13:56:35 +0300 |
commit | 545214c582e6a7ffa88fa68bdb0ead1bff987730 (patch) | |
tree | 990d9b56ba03bdedb4d9834857efaf2623f088f7 | |
parent | 409fb69267d04ff89c885122526bccbb7e334376 (diff) |
Disable search box by default.
-rw-r--r-- | layouts/_default/single.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b407510..0d29660 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -5,9 +5,11 @@ <h2>{{ . }}</h2> {{ end -}} </div> +{{ if .Site.Params.EnableSearch -}} <div style="position: fixed; right:-30px; max-width:300px; overflow:auto; top: 1px; width: 300px; bottom:100px"> {{ partial "search.html" . }} </div> +{{ end -}} <div class="meta"> {{ if .Date -}} <div>{{ .Date.Format (.Site.Params.dateFormat | default "2006-01-02 15:04") }}</div> |