aboutsummaryrefslogtreecommitdiffstats
path: root/layouts
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
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')
-rw-r--r--layouts/404.html3
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/partials/header.html7
4 files changed, 8 insertions, 6 deletions
diff --git a/layouts/404.html b/layouts/404.html
index af1122f..016a86d 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -10,10 +10,9 @@
{{ $query := where (where (where (where site.RegularPages.ByDate.Reverse "Title" "!=" "") "Kind" "in" (slice "page" "section")) "Params.private" "!=" true) "Permalink" "!=" "" }}
{{ $count := len $query }}
{{ if gt $count 0 }}
- <h3 class="lh-title f3 baskerville">Pages recently edited</h3>
+ <h3 class="lh-title f3 baskerville">{{ T "recent_pages" }}</h3>
<ul class="list ph5">
{{ range first 10 $query }}
-
<li class="lh-copy stripe-dark ph1 pv2">
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
<time
diff --git a/layouts/index.html b/layouts/index.html
index c10f2ec..ef1d9e2 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -17,7 +17,7 @@
{{ end }}
<div class="tc pa3">
<i class="fas fa-angle-right"></i>
- <a href="{{ .Type }}" class="f3 link near-black">See all</a>
+ <a href="{{ .Type }}" class="f3 link near-black">{{ T "See all" }}</a>
</div>
</div>
</div>
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index d9e6ccc..8740f70 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -15,7 +15,7 @@
{{ range .Site.Menus.footer }}
<li class="dib dim">
<a class="db f6 pa2 link near-white" href="{{ .URL }}"
- >{{ .Name | safeHTML }}
+ >{{ T .Name | safeHTML }}
</a>
</li>
{{ end }}
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 }}