Fix the relative links on sidebar tabs.
This commit is contained in:
parent
b985965bc9
commit
4702244ae8
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@
|
||||||
<ul class="nav flex-column">
|
<ul class="nav flex-column">
|
||||||
<!-- home -->
|
<!-- home -->
|
||||||
<li class="nav-item d-flex justify-content-center {% if page.layout == 'home' %}active{% endif %}">
|
<li class="nav-item d-flex justify-content-center {% if page.layout == 'home' %}active{% endif %}">
|
||||||
<a href="/" class="nav-link d-flex justify-content-center align-items-center w-100">
|
<a href="{{ '/' | relative_url }}" class="nav-link d-flex justify-content-center align-items-center w-100">
|
||||||
<i class="fa-fw fas fa-home ml-xl-3 mr-xl-3 unloaded"></i>
|
<i class="fa-fw fas fa-home ml-xl-3 mr-xl-3 unloaded"></i>
|
||||||
<span>{{ "HOME" }}</span>
|
<span>{{ "HOME" }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
<!-- the real tabs -->
|
<!-- the real tabs -->
|
||||||
{% for tab in site.tabs %}
|
{% for tab in site.tabs %}
|
||||||
<li class="nav-item d-flex justify-content-center {% if tab.url == page.url %}active{% endif %}">
|
<li class="nav-item d-flex justify-content-center {% if tab.url == page.url %}active{% endif %}">
|
||||||
<a href="{{ tab.url }}" class="nav-link d-flex justify-content-center align-items-center w-100">
|
<a href="{{ tab.url | relative_url }}" class="nav-link d-flex justify-content-center align-items-center w-100">
|
||||||
<i class="fa-fw {{ tab.icon }} ml-xl-3 mr-xl-3 unloaded"></i>
|
<i class="fa-fw {{ tab.icon }} ml-xl-3 mr-xl-3 unloaded"></i>
|
||||||
<span>{{ tab.title | upcase }}</span>
|
<span>{{ tab.title | upcase }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue