|
7 | 7 | --> |
8 | 8 |
|
9 | 9 | <div id="nav-wrapper"> |
| 10 | + |
10 | 11 | <div id="profile-wrapper" class="d-flex flex-column"> |
11 | 12 | <div id="avatar" class="d-flex justify-content-center"> |
12 | 13 | <a href="{{ site.baseurl }}/" alt="avatar"> |
|
25 | 26 | </div> |
26 | 27 | <div class="site-subtitle font-italic">{{- site.tagline -}}</div> |
27 | 28 | </div> |
28 | | - </div> |
| 29 | + </div><!-- #profile-wrapper --> |
29 | 30 |
|
30 | 31 | <ul class="nav flex-column"> |
31 | | - {% assign page_urls = page.url | split: "/" %} |
32 | | - |
33 | | - {% for item in site.data.tabs %} |
34 | | - {% assign ref = site.baseurl | append: "/" %} |
35 | | - |
36 | | - {% if item.path %} |
37 | | - {% assign ref = ref | append: item.path | append: "/" %} |
38 | | - {% if item.url %} |
39 | | - {% assign ref = ref | append: item.url | append: "/" %} |
40 | | - {% endif %} |
41 | | - {% endif %} |
42 | | - |
43 | | - <li class="nav-item d-flex justify-content-center |
44 | | - {% if item.url == page_urls.last |
45 | | - or item.name == page.tab_active |
46 | | - or item.name == "Home" and page.layout == "home" %}active{% endif %}"> |
47 | | - <a href="{{ ref }}" class="nav-link d-flex justify-content-center align-items-center w-100"> |
48 | | - <i class="fa-fw {{ item.icon }} ml-xl-3 mr-xl-3 unloaded"></i> |
49 | | - <span>{{ item.name | upcase }}</span> |
| 32 | + <!-- home --> |
| 33 | + <li class="nav-item d-flex justify-content-center {% if page.layout == 'home' %}active{% endif %}"> |
| 34 | + <a href="/" class="nav-link d-flex justify-content-center align-items-center w-100"> |
| 35 | + <i class="fa-fw fas fa-home ml-xl-3 mr-xl-3 unloaded"></i> |
| 36 | + <span>{{ "HOME" }}</span> |
| 37 | + </a> |
| 38 | + </li> |
| 39 | + <!-- the real tabs --> |
| 40 | + {% for tab in site.tabs %} |
| 41 | + <li class="nav-item d-flex justify-content-center {% if tab.url == page.url %}active{% endif %}"> |
| 42 | + <a href="{{ tab.url }}" class="nav-link d-flex justify-content-center align-items-center w-100"> |
| 43 | + <i class="fa-fw {{ tab.icon }} ml-xl-3 mr-xl-3 unloaded"></i> |
| 44 | + <span>{{ tab.title | upcase }}</span> |
50 | 45 | </a> |
51 | 46 | </li> <!-- .nav-item --> |
52 | | - {% endfor %} |
| 47 | + {% endfor %} |
53 | 48 |
|
54 | 49 | </ul> <!-- ul.nav.flex-column --> |
55 | 50 |
|
|
0 commit comments