diff options
Diffstat (limited to 'themes')
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/partials/breadcrumb.html | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/themes/danix-xyz-hacker/layouts/partials/breadcrumb.html b/themes/danix-xyz-hacker/layouts/partials/breadcrumb.html index cae9344..aa7c1e8 100644 --- a/themes/danix-xyz-hacker/layouts/partials/breadcrumb.html +++ b/themes/danix-xyz-hacker/layouts/partials/breadcrumb.html @@ -1,7 +1,14 @@ +{{ $homeLink := "/" }} +{{ $articlesLink := "/articles/" }} +{{ if eq .Lang "it" }} + {{ $homeLink = "/it/" }} + {{ $articlesLink = "/it/articles/" }} +{{ end }} + <nav class="breadcrumb mb-6" aria-label="Breadcrumb"> - <a href="/">Home</a> + <a href="{{ $homeLink }}">{{ i18n "home" }}</a> <span class="breadcrumb-separator">/</span> - <a href="/articles/">Articles</a> + <a href="{{ $articlesLink }}">{{ i18n "articles" }}</a> <span class="breadcrumb-separator">/</span> <span>{{ .Title }}</span> </nav> |
