aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web/templates/blog/search.html
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/templates/blog/search.html')
-rw-r--r--internal/web/templates/blog/search.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/web/templates/blog/search.html b/internal/web/templates/blog/search.html
index b146f5e..7ee05fc 100644
--- a/internal/web/templates/blog/search.html
+++ b/internal/web/templates/blog/search.html
@@ -1,7 +1,7 @@
{{define "title"}}{{if .Data.q}}{{tf "Results for “%s”" .Data.q}}{{else}}{{t "Search"}}{{end}} · {{.Blog.Title}}{{end}}
{{define "content"}}
<h1 class="page-title">{{if .Data.q}}{{tf "Results for “%s”" .Data.q}}{{else}}{{t "Search"}}{{end}}</h1>
-<div class="search-page">{{template "searchform" .}}</div>
+{{if not .Data.layout.HasSearch}}<div class="search-page">{{template "searchform" .}}</div>{{end}}
{{if not .Data.q}}<p class="muted">{{t "Type a word or two to find posts."}}</p>
{{else if not .Data.hits}}<p class="muted">{{tf "Nothing matched “%s”." .Data.q}}</p>
{{else}}