feat(i18n): initial support for i18n

This commit is contained in:
Jimmy Cai
2020-09-09 17:17:09 +02:00
parent 98804e578d
commit ed4a43096c
8 changed files with 34 additions and 8 deletions
@@ -17,7 +17,9 @@
{{- if ne .Lastmod .Date -}}
<section class="article-time">
{{ (resources.Get "icons/clock.svg").Content | safeHTML }}
<span class="article-time--modified">Last updated on {{ .Lastmod.Format ( or .Site.Params.dateFormat "Jan 02, 2006 15:04 MST" ) }}</span>
<span class="article-time--modified">
{{ T "lastUpdatedOn" }} {{ .Lastmod.Format ( or .Site.Params.dateFormat "Jan 02, 2006 15:04 MST" ) }}
</span>
</section>
{{- end -}}
</footer>
@@ -1,7 +1,7 @@
<aside class="widget related-contents--wrapper">
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<h1 class="widget-title">Related contents</h1>
<h1 class="widget-title">{{ T "relatedContents" }}</h1>
<div class="related-contents">
<div class="flex article-list--tile">
{{ range . }}