Skip to content

Commit

Permalink
fix: missing "/" at the end of URLs for categories and tags in breadc…
Browse files Browse the repository at this point in the history
…rumb (#1495)
  • Loading branch information
cotes2020 authored Jan 18, 2024
1 parent 4facf5b commit 02e296e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _includes/topbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{% if forloop.first %}
<span>
<a href="{{ '/' | relative_url }}">
{{ site.data.locales[include.lang].tabs.home | capitalize }}
{{- site.data.locales[include.lang].tabs.home | capitalize -}}
</a>
</span>

Expand All @@ -30,8 +30,8 @@

{% elsif page.layout == 'category' or page.layout == 'tag' %}
<span>
<a href="{{ item | relative_url }}">
{{ site.data.locales[include.lang].tabs[item] | default: page.title }}
<a href="{{ item | append: '/' | relative_url }}">
{{- site.data.locales[include.lang].tabs[item] | default: page.title -}}
</a>
</span>
{% endif %}
Expand Down

0 comments on commit 02e296e

Please sign in to comment.