improve sidebar translation

This commit is contained in:
Vri 🌈 2023-01-06 21:47:57 +01:00
parent 3cf6018c1f
commit fd4693050a
Signed by: vrifox
GPG key ID: D40098E5B60B2197

View file

@ -12,9 +12,9 @@
<ul>
{{- range .Site.Menus.main }}
{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}
<li class="active"><a href="{{ .URL }}">{{ .Name }}</a></li>
<li class="active"><a href="{{ .URL }}">{{ i18n .Identifier | default .Name }}</a></li>
{{ else }}
<li><a href="{{ .URL }}">{{ .Name }}</a></li>
<li><a href="{{ .URL }}">{{ i18n .Identifier | default .Name }}</a></li>
{{ end }}
{{- end }}
</ul>