feat: Update breadcrumb with home translate
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Simon 2024-03-14 11:13:26 +01:00
parent 3cfa780e5e
commit a6c0e2e248
2 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,9 @@ other = "Modifiez cette page sur"
[get_started]
other = "Exemple de guide"
[home]
other = "Accueil"
[last_updated]
other = "Dernière mise à jour le"

View File

@ -1,4 +1,4 @@
{{ with .Parent -}}
{{ partial "main/breadcrumb.html" . -}}
<li class="breadcrumb-item"><a href="{{ .RelPermalink }}">{{ if .IsHome }}Home{{ else if eq .CurrentSection .FirstSection }}{{ .Section | humanize }}{{ else }}{{ .Title }}{{ end }}</a></li>
<li class="breadcrumb-item"><a href="{{ .RelPermalink }}">{{ if .IsHome }}{{ i18n "home" }}{{ else if eq .CurrentSection .FirstSection }}{{ .Section | humanize }}{{ else }}{{ .Title }}{{ end }}</a></li>
{{ end -}}