|
1 | 1 | <header class="m-page-header main clearfix"> |
2 | | - {% if site.paths.home %} |
3 | | - {% assign __path = site.paths.home %} |
| 2 | + {% if site.paths.base %} |
| 3 | + {% assign __path = site.paths.base %} |
4 | 4 | {% else %} |
5 | 5 | {% assign __path = '/' %} |
6 | 6 | {% endif %} |
7 | | - {% include snippets/prepend-baseurl.html %} |
| 7 | + {% assign pre7 = __path | slice: 0, 7 %} {% assign pre8 = __path | slice: 0, 8 %} |
| 8 | + {% if pre7 == 'http://' or pre8 == 'https://' %} |
| 9 | + {% assign href = __path %} |
| 10 | + {% else %} |
| 11 | + {% include snippets/prepend-baseurl.html %} |
| 12 | + {% assign href = __return %} |
| 13 | + {% endif %} |
8 | 14 | {% if site.title %} |
9 | | - <a class="site-title" title="{% if site.description %}{{ site.description }}{% endif %}" href="{{ __return }}">{{ site.title }}</a> |
| 15 | + <a class="site-title" title="{% if site.description %}{{ site.description }}{% endif %}" href="{{ __return }}">{{ site.title }}</a> |
10 | 16 | {% endif %} |
11 | 17 | <div class="site-logo"> |
12 | 18 | {% include logo/logo.svg %} |
13 | 19 | </div> |
14 | 20 | <nav> |
15 | 21 | <ul class="inline-list"> |
16 | | - {% assign __path = '/' %} |
17 | | - {% include snippets/prepend-baseurl.html %} |
18 | | - {% assign href = __return %} |
| 22 | + {% if site.paths.home %} |
| 23 | + {% assign __path = site.paths.home %} |
| 24 | + {% else %} |
| 25 | + {% assign __path = '/' %} |
| 26 | + {% endif %} |
| 27 | + {% assign pre7 = __path | slice: 0, 7 %} {% assign pre8 = __path | slice: 0, 8 %} |
| 28 | + {% if pre7 == 'http://' or pre8 == 'https://' %} |
| 29 | + {% assign href = __path %} |
| 30 | + {% else %} |
| 31 | + {% include snippets/prepend-baseurl.html %} |
| 32 | + {% assign href = __return %} |
| 33 | + {% endif %} |
19 | 34 | {% assign __locale = site.data.locale.NAV.HOME %} |
20 | 35 | {% include snippets/locale-to-string.html %} |
21 | 36 | <li><a href="{{ href }}">{{ __return }}</a></li> |
|
28 | 43 | {% assign href = __return %} |
29 | 44 | {% assign __locale = site.data.locale.NAV.ALL %} |
30 | 45 | {% include snippets/locale-to-string.html %} |
31 | | - <li><a href="{{ href | append: "?tag=" | replace: '//', '/'}}">{{ __return }}</a></li> |
| 46 | + <li><a href="{{ href }}">{{ __return }}</a></li> |
32 | 47 | {% for list in site.nav_lists %} |
33 | 48 | {% assign __path = list.url %} |
34 | 49 | {% include snippets/prepend-baseurl.html %} |
|
0 commit comments