fixed the search url when use Chinese and support i18n. (#9588)

This commit is contained in:
凡梦星尘 2021-04-29 01:41:08 +08:00 committed by GitHub
parent d20bce3176
commit 17586c328b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -64,8 +64,8 @@
<input type="hidden" name="cx" value="{{ .Site.Data.args.main_search_engine_id }}" />
{{ end }}
<input type="hidden" name="ie" value="utf-8" />
<input type="hidden" name="hl" value="en" />
<input type="hidden" id="search-page-url" value="{{ .Site.BaseURL }}/search" />
<input type="hidden" name="hl" value="{{ .Page.Lang }}" />
<input type="hidden" id="search-page-url" value="{{ "/search" | relLangURL }}" />
<input id="search-textbox" class="search-textbox form-control" name="q" type="search" aria-label='{{ i18n "search" }}' placeholder='{{ i18n "search_label" }}' />
<button id="search-close" title='{{ i18n "search_cancel" }}' type="reset" aria-label='{{ i18n "search_cancel" }}'>{{ partial "icon.html" "menu-close" }}</button>
</form>