Skip to content

Commit

Permalink
Fix sidebar lang target
Browse files Browse the repository at this point in the history
  • Loading branch information
Edit-Mr committed Jun 3, 2024
1 parent 0a73755 commit 2b792d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/_includes/sidebar.njk
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
<ul>
{% for localeI in locales -%}
<li class="level-2 mb-px">
<a href="/{{ localeI.code }}/{{ pageUrl }}" class="nav-link -mx-1 p-1">
<a href="/{{ localeI.code }}/{{ page.url | replace(locale, '') | replace('/', '') }}" hreflang="{{ localeI.code }}" class="nav-link -mx-1 p-1">
{{ localeI.label }}
</a>
</li>
{% endfor -%}



</ul>
</li>

Expand Down

0 comments on commit 2b792d6

Please sign in to comment.