Skip to content

Commit

Permalink
2023-10-30 03:54:07
Browse files Browse the repository at this point in the history
  • Loading branch information
uidHUB committed Oct 30, 2023
1 parent ed204f2 commit 621da1c
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions layouts/partials/module/search/form.yandex.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
{{ $url := (urls.Parse (site.BaseURL)) }}

{{ $domain := "" }}{{ $icon := "" }}
{{ if (eq ($.Language.Lang) ("ru")) }}
{{ $domain = "yandex.ru" }}
{{ $icon = "yandex" }}
{{ else }}
{{ $domain = "yandex.com" }}
{{ $icon = "yandex-international" }}
{{ end }}

<form action="https://{{ ($domain) }}/yandsearch" method="get" class="d-flex" target="_blank">
<form action="https://ya.ru/search" method="get" class="d-flex" target="_blank">
<input type="hidden" name="site" value="{{ ($url.Host) }}"/>
<div class="input-group">
<span class="input-group-text"><i class="fas fa-search fa-fw"></i></span>
<input type="search" class="form-control" name="text" placeholder='{{ (i18n "search_yandex") }}' aria-label='{{ (i18n "search_yandex") }}'/>
<span class="input-group-text"><i class="fab fa-{{ ($icon) }} fa-fw"></i></span>
<span class="input-group-text"><i class="fab fa-yandex fa-fw"></i></span>
</div>
</form>

0 comments on commit 621da1c

Please sign in to comment.