mirror of https://github.com/onweru/compose.git

weru
14.33.2023 00dd32520269413918ed8250a9951820f5972df0
allow translations for backward compatibility #107

Signed-off-by: weru <fromweru@gmail.com>
1 files modified
2 ■■■ changed files
layouts/partials/search.html 2 ●●● patch | view | raw | blame | history
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 }}