♻️ refactor: force a trailing slash on the nav home title (#547)

Co-authored-by: welpo <welpo@users.noreply.github.com>
This commit is contained in:
Ulrich Schreiner 2025-07-20 19:06:13 +02:00 committed by GitHub
parent 9f5f307444
commit 0639c0c397
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,7 @@
<header>
<nav class="navbar">
<div class="nav-title">
<a class="home-title" href="{{ get_url(path='/', lang=lang) }}">{{ config.title }}</a>
<a class="home-title" href="{{ get_url(path='/', lang=lang, trailing_slash=(lang == config.default_language)) }}">{{ config.title }}</a>
</div>
{%- if config.extra.menu %}