aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/home.gmi4
-rw-r--r--layouts/home.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/home.gmi b/layouts/home.gmi
index 4ce3bf1..3668e45 100644
--- a/layouts/home.gmi
+++ b/layouts/home.gmi
@@ -13,11 +13,11 @@
{{ end -}}
-{{ if .Site.RegularPages }}
+{{ with (where .Site.RegularPages "Section" "entry").ByPublishDate.Reverse }}
## {{ i18n "journalEntries" -}}
-{{ range (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }}
+{{ range . }}
{{ partial "metadata.gmi" . -}}
{{ end -}}
diff --git a/layouts/home.html b/layouts/home.html
index cdf2d01..3056518 100644
--- a/layouts/home.html
+++ b/layouts/home.html
@@ -12,9 +12,9 @@
</ul>
</nav>
{{ end -}}
- {{ if .Site.RegularPages -}}
+ {{ with (where .Site.RegularPages "Section" "entry").ByPublishDate.Reverse -}}
<h2>{{ i18n "journalEntries" }}</h2>
- {{ range (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse -}}
+ {{ range . -}}
{{ partial "metadata.html" . }}
{{ end -}}
{{ end -}}