aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/header.html
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2024-12-19 01:10:34 +0100
committerOscar Najera <hi@oscarnajera.com>2024-12-19 02:44:50 +0100
commit3b9a5a997608b82442a33db3219cca6ddcd302b5 (patch)
tree84fc51a416865d6db175d1d4e6867181d74ede93 /layouts/partials/header.html
parentc043b199eb247638a08945b88d76601c99e737b6 (diff)
downloadhugo-minimalist-theme-3b9a5a997608b82442a33db3219cca6ddcd302b5.tar.gz
hugo-minimalist-theme-3b9a5a997608b82442a33db3219cca6ddcd302b5.tar.bz2
hugo-minimalist-theme-3b9a5a997608b82442a33db3219cca6ddcd302b5.zip
translate table for main and footer menu
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index ea9f3ec..2dec03a 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -22,9 +22,12 @@
<ul class="ma0 pa0 list overflow-hidden avenir">
{{ range .Site.Menus.main }}
<li class="fl-ns w3-hover-theme">
- <a class="db f6 pa3 link near-white" href="{{ .PageRef | relLangURL }}">
+ <a
+ class="db f6 pa3 link near-white"
+ href="{{ .PageRef | relLangURL }}"
+ >
{{ .Pre }}
- {{- .Name | safeHTML -}}
+ {{- or (T .Identifier) .Name | safeHTML -}}
</a>
</li>
{{ end }}