From 00dd32520269413918ed8250a9951820f5972df0 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Fri, 14 Apr 2023 07:33:44 +0000
Subject: [PATCH] allow translations for backward compatibility #107

---
 layouts/partials/search.html |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/layouts/partials/search.html b/layouts/partials/search.html
index 17988b7..32aebac 100644
--- a/layouts/partials/search.html
+++ b/layouts/partials/search.html
@@ -2,7 +2,7 @@
 {{- if $searchEnabled }}
   {{- $section := .Section }}
   {{- $config := site.Params }}
-  {{- $default := T "search_field_placeholder" }}
+  {{- $default := T "search_field_placeholder" (dict "section" "") }}
   {{- $scope := T "site" }}
   {{- if and $section (eq $config.search.global false) }}
     {{- $scope = $section }}

--
Gitblit v1.10.0