feat: Update breadcrumb with home translate
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
3cfa780e5e
commit
a6c0e2e248
|
@ -19,6 +19,9 @@ other = "Modifiez cette page sur"
|
||||||
[get_started]
|
[get_started]
|
||||||
other = "Exemple de guide"
|
other = "Exemple de guide"
|
||||||
|
|
||||||
|
[home]
|
||||||
|
other = "Accueil"
|
||||||
|
|
||||||
[last_updated]
|
[last_updated]
|
||||||
other = "Dernière mise à jour le"
|
other = "Dernière mise à jour le"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{ with .Parent -}}
|
{{ with .Parent -}}
|
||||||
{{ partial "main/breadcrumb.html" . -}}
|
{{ 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 -}}
|
{{ end -}}
|
Loading…
Reference in New Issue