|
1 | 1 | <!-- The Side Bar --> |
2 | 2 |
|
3 | 3 | <div id="sidebar" class="d-flex flex-column align-items-end"> |
4 | | - <div class="profile-wrapper text-center"> |
5 | | - <div id="avatar"> |
6 | | - <a href="{{ '/' | relative_url }}" class="mx-auto"> |
7 | | - {% if site.avatar != empty and site.avatar %} |
8 | | - {% capture avatar_url %} |
| 4 | + <div class="profile-wrapper"> |
| 5 | + <a href="{{ '/' | relative_url }}" id="avatar" class="rounded-circle"> |
| 6 | + {% if site.avatar != empty and site.avatar %} |
| 7 | + {% capture avatar_url %} |
9 | 8 | {% if site.avatar contains '://' %} |
10 | 9 | {{ site.avatar }} |
11 | 10 | {% elsif site.img_cdn != empty and site.img_cdn %} |
|
14 | 13 | {{ site.avatar | relative_url }} |
15 | 14 | {% endif %} |
16 | 15 | {% endcapture %} |
17 | | - <img src="{{ avatar_url | strip }}" alt="avatar" onerror="this.style.display='none'"> |
18 | | - {% endif %} |
19 | | - </a> |
20 | | - </div> |
| 16 | + <img src="{{ avatar_url | strip }}" width="112" height="112" alt="avatar" onerror="this.style.display='none'"> |
| 17 | + {% endif %} |
| 18 | + </a> |
21 | 19 |
|
22 | 20 | <div class="site-title"> |
23 | 21 | <a href="{{ '/' | relative_url }}">{{ site.title }}</a> |
|
26 | 24 | </div> |
27 | 25 | <!-- .profile-wrapper --> |
28 | 26 |
|
29 | | - <ul class="w-100"> |
| 27 | + <ul class="flex-grow-1 w-100 pl-0"> |
30 | 28 | <!-- home --> |
31 | 29 | <li class="nav-item{% if page.layout == 'home' %}{{ " active" }}{% endif %}"> |
32 | 30 | <a href="{{ '/' | relative_url }}" class="nav-link"> |
33 | | - <i class="fa-fw fas fa-home ml-xl-3 mr-xl-3 unloaded"></i> |
| 31 | + <i class="fa-fw fas fa-home"></i> |
34 | 32 | <span>{{ site.data.locales[include.lang].tabs.home | upcase }}</span> |
35 | 33 | </a> |
36 | 34 | </li> |
37 | 35 | <!-- the real tabs --> |
38 | 36 | {% for tab in site.tabs %} |
39 | 37 | <li class="nav-item{% if tab.url == page.url %}{{ " active" }}{% endif %}"> |
40 | 38 | <a href="{{ tab.url | relative_url }}" class="nav-link"> |
41 | | - <i class="fa-fw {{ tab.icon }} ml-xl-3 mr-xl-3 unloaded"></i> |
| 39 | + <i class="fa-fw {{ tab.icon }}"></i> |
42 | 40 | {% capture tab_name %}{{ tab.url | split: '/' }}{% endcapture %} |
43 | 41 |
|
44 | 42 | <span>{{ site.data.locales[include.lang].tabs.[tab_name] | default: tab.title | upcase }}</span> |
|
49 | 47 | </ul> |
50 | 48 | <!-- ul.nav.flex-column --> |
51 | 49 |
|
52 | | - <div class="sidebar-bottom mt-auto d-flex flex-wrap justify-content-center align-items-center"> |
| 50 | + <div class="sidebar-bottom d-flex flex-wrap align-items-center w-100"> |
53 | 51 | {% unless site.theme_mode %} |
54 | 52 | <button class="mode-toggle btn" aria-label="Switch Mode"> |
55 | 53 | <i class="fas fa-adjust"></i> |
|
0 commit comments