feat(search): i18n support

This commit is contained in:
Jimmy Cai
2020-11-06 11:49:30 +01:00
parent f5d45458fd
commit c018f4967a
5 changed files with 44 additions and 9 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
<form action="/search" class="search-form widget" {{ with .OutputFormats.Get "json" -}}data-json="{{ .Permalink }}" {{- end }}>
<p>
<label>Search</label>
<input name="keyword" required placeholder="Type something..." />
<label>{{ T "searchTitle" }}</label>
<input name="keyword" required placeholder="{{ T `searchPlaceholder` }}" />
<button title="Search">
{{ partial "helper/icon" "search" }}