|
1 | 1 | {% assign t = site.data.locales[page.lang][page.lang] %} |
2 | 2 | <nav class="main-nav"> |
3 | 3 | <div class="container-lg mx-auto clearfix"> |
| 4 | + {% if page.layout != 'index' %} |
| 5 | + <div class="float-sm-left pl-3 breadcrumb"> |
| 6 | + <p class="my-0 py-3 py-sm-4 text-gray"> |
| 7 | + {% assign lang_url = '/' | append: page.lang | append: '/' %} |
| 8 | + {% assign lang_index = site.pages | where: "url", lang_url %} |
| 9 | + {% if page.lang != 'en' and lang_index.size > 0 %} |
| 10 | + <a href="{{ lang_url }}" class="text-gray">{{ site.title }}</a> |
| 11 | + {% elsif page.lang != 'en' %} |
| 12 | + <a href="{{ '/' | relative_url }}" class="text-gray">{{ site.title }}</a> |
| 13 | + {% else %} |
| 14 | + <a href="/" class="text-gray">{{ site.title }}</a> |
| 15 | + {% endif %} |
| 16 | + </p> |
| 17 | + </div> |
| 18 | + {% endif %} |
4 | 19 | <div class="float-sm-right"> |
5 | 20 | <ul |
6 | 21 | class="main-links d-flex flex-wrap flex-items-stretch flex-justify-center border-left border-bottom border-sm-0 list-style-none"> |
|
34 | 49 | {% endif %} |
35 | 50 | </ul> |
36 | 51 | </div> |
37 | | - {% if page.layout != 'index' %} |
38 | | - <div class="float-sm-left pl-3 breadcrumb"> |
39 | | - <p class="my-0 py-3 py-sm-4 text-gray"> |
40 | | - {% assign lang_url = '/' | append: page.lang | append: '/' %} |
41 | | - {% assign lang_index = site.pages | where: "url", lang_url %} |
42 | | - {% if page.lang != 'en' and lang_index.size > 0 %} |
43 | | - <a href="{{ lang_url }}" class="text-gray">{{ site.title }}</a> |
44 | | - {% elsif page.lang != 'en' %} |
45 | | - <a href="{{ '/' | relative_url }}" class="text-gray">{{ site.title }}</a> |
46 | | - {% else %} |
47 | | - <a href="/" class="text-gray">{{ site.title }}</a> |
48 | | - {% endif %} |
49 | | - </p> |
50 | | - </div> |
51 | | - {% endif %} |
52 | 52 | </div> |
53 | 53 | </nav> |
0 commit comments