aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.gmi4
-rw-r--r--layouts/index.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/index.gmi b/layouts/index.gmi
index b97ef74..8ace600 100644
--- a/layouts/index.gmi
+++ b/layouts/index.gmi
@@ -6,11 +6,11 @@
{{ .Site.Params.indexIntro | safeHTML }}
{{- end }}
-## Navigation Links
+## {{ i18n "navLinks" }}
{{ range .Site.Menus.main -}}
=> {{ .URL }} {{ emojify ":link:" | safeHTML }} {{ .Name | safeHTML }}
{{ end }}
-## Journal Entries
+## {{ i18n "journalEntries" }}
{{ $entriesMinusOne := sub (len (where .Site.RegularPages.ByTitle "Section" "entry")) 1 -}}
{{ range first $entriesMinusOne (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse -}}
{{ partial "metadata.gmi" . }}
diff --git a/layouts/index.html b/layouts/index.html
index d29c86a..3161c49 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -6,7 +6,7 @@
{{- if .Site.Params.indexIntro }}
<p>{{ .Site.Params.indexIntro }}</p>
{{- end }}
- <h2>Navigation Links</h2>
+ <h2>{{ i18n "navLinks" }}</h2>
<nav>
<ul class="list">
{{- range .Site.Menus.main }}
@@ -14,7 +14,7 @@
{{- end }}
</ul>
</nav>
- <h2>Journal Entries</h2>
+ <h2>{{ i18n "journalEntries" }}</h2>
{{ range (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse -}}
{{ partial "metadata.html" . -}}
{{ end -}}