diff options
Diffstat (limited to 'layouts/partials')
| -rw-r--r-- | layouts/partials/footer.html | 2 | ||||
| -rw-r--r-- | layouts/partials/mini-toc.html | 3 | ||||
| -rw-r--r-- | layouts/partials/post-meta/date.html | 5 | ||||
| -rw-r--r-- | layouts/partials/post-toc-summary.html | 2 | ||||
| -rw-r--r-- | layouts/partials/sidebar-toc.html | 5 |
5 files changed, 7 insertions, 10 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 7525a24..654a7a8 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -7,7 +7,7 @@ {{ end }} {{ with .Params.editor }} <p> - Edited by {{ . }}, + {{ i18n "edited_by" . }}, {{ if not $.Params.Lastmod.IsZero }} {{ $.Params.Lastmod.Format "2006" }} {{ else }} diff --git a/layouts/partials/mini-toc.html b/layouts/partials/mini-toc.html index 4d4d742..629169b 100644 --- a/layouts/partials/mini-toc.html +++ b/layouts/partials/mini-toc.html @@ -12,8 +12,7 @@ {{ $mxPosts := site.Params.recentPostsSize | default 5 }} <div class="toc" role="navigation"> - {{/* TODO: Translate me */}} - <h2>Latest Publications</h2> + <h2>{{ i18n "latest_publications" }}</h2> <ul class="texts"> {{/* Range through the first $mxPosts items of the $section */}} {{ range (first $mxPosts $section) }} diff --git a/layouts/partials/post-meta/date.html b/layouts/partials/post-meta/date.html index 29a86b8..92401e7 100644 --- a/layouts/partials/post-meta/date.html +++ b/layouts/partials/post-meta/date.html @@ -1,11 +1,10 @@ {{- if not .Date.IsZero }} <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}"> - {{- .Date.Format (site.Params.dateformat | default "January 02, 2006") -}} + {{- .Date | time.Format (site.Params.dateformat | default "January 02, 2006") -}} </time> {{- if ne .Date .Lastmod }} <time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}"> - {{- /* TODO: Translate me */}} - (Updated: {{ .Lastmod.Format (site.Params.dateformat | default "January 02, 2006") -}}) + ({{ i18n "updated_at" }} {{ .Lastmod | time.Format (site.Params.dateformat | default "January 02, 2006") -}}) </time> {{- end -}} {{- end }} diff --git a/layouts/partials/post-toc-summary.html b/layouts/partials/post-toc-summary.html index d9a70c7..371a6f1 100644 --- a/layouts/partials/post-toc-summary.html +++ b/layouts/partials/post-toc-summary.html @@ -1,6 +1,6 @@ <span class="post-meta"> <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}"> - {{- .Date.Format (site.Params.dateFormatToc | default "2006.01.02") }} + {{- .Date | time.Format (site.Params.dateFormatToc | default "2006.01.02") }} </time> </span> diff --git a/layouts/partials/sidebar-toc.html b/layouts/partials/sidebar-toc.html index da7fd93..692643d 100644 --- a/layouts/partials/sidebar-toc.html +++ b/layouts/partials/sidebar-toc.html @@ -8,9 +8,8 @@ </div> <nav class="sidebar-nav"> - {{/* TODO: Translate links */}} - <a class="sidebar-nav-item" href="{{ site.Home.RelPermalink }}">Home</a> - <a class="sidebar-nav-item" href="#" data-proofer-ignore>Return to Top</a> + <a class="sidebar-nav-item" href="{{ site.Home.RelPermalink }}">{{ i18n "home" }}</a> + <a class="sidebar-nav-item" href="#" data-proofer-ignore>{{ i18n "top" }}</a> {{ range $item := .Params.toc }} {{/* TODO: Add 'active' class for curent section */}} |
