diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/404.html | 3 | ||||
-rw-r--r-- | layouts/index.html | 2 | ||||
-rw-r--r-- | layouts/partials/footer.html | 2 | ||||
-rw-r--r-- | layouts/partials/header.html | 7 |
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 }} |