Add i18n support to the theme

This commit is contained in:
2023-01-01 01:28:18 -08:00
parent f56465c5ec
commit 98ee4bd8f3
9 changed files with 73 additions and 25 deletions

View File

@@ -1,7 +1,7 @@
{{ define "main" }}
{{ .Content }}
Recent posts:
{{ i18n "recentPosts" }}:
<ul class="post-list">
{{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
{{ partial "post.html" . }}