From 624fcebe7758611fd9051d286daa362d72cc873f Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sat, 16 Jul 2022 22:07:21 +0200 Subject: Do not show error if there is no search term --- layouts/shortcodes/form-search.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/shortcodes/form-search.html') diff --git a/layouts/shortcodes/form-search.html b/layouts/shortcodes/form-search.html index 403d808..94a951c 100644 --- a/layouts/shortcodes/form-search.html +++ b/layouts/shortcodes/form-search.html @@ -62,7 +62,7 @@ {{- /* Configure search engine. */ -}} {{- $maxSummaryLength := site.Params.search.maxSummaryLength | default 100 -}} {{- $searchConfig := dict "indexURI" ("/index.json" | relLangURL) "maxSummaryLength" $maxSummaryLength -}} -{{- $searchI18n := dict "enterTerm" (i18n "search_enter_term") "noResults" (i18n "search_no_results") -}} +{{- $searchI18n := dict "noResults" (i18n "search_no_results") -}} {{- $searchParams := dict "searchConfig" $searchConfig "i18n" $searchI18n -}} {{- $siteSearch := slice -}} -- cgit v1.2.3