Skip to content

Commit

Permalink
fix docs sidebar links
Browse files Browse the repository at this point in the history
  • Loading branch information
REJack committed May 19, 2020
1 parent 66268d5 commit 6b8b692
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/_includes/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<a href="{{'index.html' | absolute_url}}" class="brand-link logo-switch">
<img src="{{'assets/img/logo-xs.png' | absolute_url}}" alt="AdminLTE Docs Logo Small" class="brand-image-xl logo-xs">
<img src="{{'assets/img/logo-xl.png' | absolute_url}}" alt="AdminLTE Docs Logo Large" class="brand-image-xs logo-xl" style="left: 12px">
<a href="{{'index.html' | prepend: site.baseurl}}" class="brand-link logo-switch">
<img src="{{'assets/img/logo-xs.png' | prepend: site.baseurl}}" alt="AdminLTE Docs Logo Small" class="brand-image-xl logo-xs">
<img src="{{'assets/img/logo-xl.png' | prepend: site.baseurl}}" alt="AdminLTE Docs Logo Large" class="brand-image-xs logo-xl" style="left: 12px">
</a>
<div class="sidebar">
<nav class="mt-2">
Expand All @@ -22,7 +22,7 @@
{% assign item_url = '/' | append: item.url %}
{% endif %}

<a href="{% if item.url %}{{item.url | absolute_url}}{% else %}#{% endif %}" class="nav-link {% if item_url == page.url %}active{% endif %}{% if subitem_active == 'true'%}active{% endif %}">
<a href="{% if item.url %}{{item.url | prepend: site.baseurl}}{% else %}#{% endif %}" class="nav-link {% if item_url == page.url %}active{% endif %}{% if subitem_active == 'true'%}active{% endif %}">
<i class="nav-icon {{item.icon}}"></i>
<p>
{{item.title}}
Expand All @@ -35,7 +35,7 @@
{% for subitem in item.subitems %}
{% assign subitem_url = '/' | append: subitem.url %}
<li class="nav-item">
<a href="{{subitem.url | absolute_url}}" class="nav-link {% if subitem_url == page.url %}active{% endif %}">
<a href="{{subitem.url | prepend: site.baseurl}}" class="nav-link {% if subitem_url == page.url %}active{% endif %}">
<i class="far fa-circle nav-icon"></i>
<p>{{subitem.title}}</p>
</a>
Expand Down

0 comments on commit 6b8b692

Please sign in to comment.