File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
templates/components/styles Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 39
39
</li >
40
40
{%~ endfor %}
41
41
<li class =" top-nav-item" >
42
- <a hreflang =" en" href =" https://www.w3.org/help/search/" class =" nav-link icon-link" >
42
+ {% set locale = site .locale | default (' en' ) %}
43
+ {% if locale == ' zh-hans' or locale == ' ja' %}
44
+ {% set search_url = ' https://www.w3.org/' ~ locale ~ ' /help/search/' %}
45
+ {% else %}
46
+ {% set search_url = ' https://www.w3.org/help/search/' %}
47
+ {% endif %}
48
+ <a hreflang =" en" href =" {{ search_url }}" class =" nav-link icon-link" >
43
49
<img class =" icon" src =" {{ absolute_url(asset(' svg/search.svg' , ' website-2021' )) }}" width =" 24" height =" 24" alt aria-hidden =" true" >{# -#}
44
50
<span class =" hide-at-max-width" >{{ ' header.search_link' | trans({}, ' w3c_website_templates_bundle' ) }}</span >
45
51
</a >
You can’t perform that action at this time.
0 commit comments