Skip to content

Commit dd679e0

Browse files
feat: use ui_seach directly
1 parent 4df04ed commit dd679e0

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

layouts/partials/search-input-custom.html

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@
22
{{ $lang := .Site.Language.Lang }}
33
{{ $searchFile := printf "content/%s/search.md" $lang }}
44

5-
{{ $check := "" }}
6-
{{ if T "ui_search_placeholder" }}
7-
{{ warnf "The search bar placeholder for the language %s is using a custom \"ui_search_placeholder\" key. Please change the key in the translations to the Docsy provided \"ui_search\"." $lang }}
8-
{{ $check = T "ui_search_placeholder" }}
9-
{{ else }}
10-
{{ $check = T "ui_search" }}
11-
{{ end }}
12-
135
<div class="search-bar">
146
<i class="search-icon fa-solid fa-search"></i>
157
<input
@@ -21,8 +13,8 @@
2113
data-search-page="{{ "search/" | relURL }}"
2214
{{ end }}
2315
class="search-input td-search-input"
24-
placeholder="{{ $check }}"
25-
aria-label="{{ $check }}"
16+
placeholder="{{ T "ui_search" }}"
17+
aria-label="{{ T "ui_search" }}"
2618
autocomplete="off"
2719
>
2820
</div>

0 commit comments

Comments
 (0)