Add i18n support

This commit is contained in:
James Panther
2021-08-17 16:48:08 +10:00
parent 18ed642ae4
commit 64dd424b80
18 changed files with 66 additions and 22 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
{{ end }}
{{ if .Site.Params.homepage.showList | default false }}
<section>
<h2 class="text-2xl font-extrabold">Recent</h2>
<h2 class="text-2xl font-extrabold">{{ i18n "homepage.recent" | emojify }}</h2>
{{ range first 5 (.Paginate (where .Site.RegularPages "Type" "in" .Site.Params.homepage.listSections)).Pages }}
{{ partial "article-link.html" . }}
{{ end }}