Skip to content

Commit

Permalink
Fix sidebar tab URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
andantet committed Nov 10, 2023
1 parent 6f6a0b0 commit 8847423
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ <h1 class="site-title">
<!-- the real tabs -->
{% for tab in site.tabs %}
<li class="nav-item{% if tab.url == page.url %}{{ " active" }}{% endif %}">
<a href="{{ tab.override_url | tab.url | relative_url }}" class="nav-link">
<i class="fa-fw {{ tab.icon }} {{ tab.add_class }}"></i>
<a href="{% if tab.override_url %}{{tab.override_url}}{% else %}{{ tab.url | relative_url }}{% endif %}" class="nav-link">
<i class="fa-fw {{ tab.icon }}{% if tab.add_class %} {{ tab.add_class }}{% endif %}"></i>
{% capture tab_name %}{{ tab.url | split: '/' }}{% endcapture %}

<span class="{{ tab.add_class }}">{{ site.data.locales[include.lang].tabs.[tab_name] | default: tab.title | upcase }}</span>
<span{% if tab.add_class %} class="{{ tab.add_class }}"{% endif %}>{{ site.data.locales[include.lang].tabs.[tab_name] | default: tab.title | upcase }}</span>
</a>
</li>
<!-- .nav-item -->
Expand Down

0 comments on commit 8847423

Please sign in to comment.