From 8334592ce283b9c3672ed0e15da6ed25306de0f7 Mon Sep 17 00:00:00 2001 From: JP Hastings-Spital Date: Fri, 10 May 2024 10:44:45 +0100 Subject: [PATCH] Fix date ordering --- layouts/partials/post-previews.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/post-previews.html b/layouts/partials/post-previews.html index 31261d03..7e42c14f 100644 --- a/layouts/partials/post-previews.html +++ b/layouts/partials/post-previews.html @@ -3,7 +3,7 @@
    {{- $posts := where .Site.RegularPages "Section" "in" (slice "posts" "bookmarks" "poetry") -}} - {{- range $posts.ByPublishDate.Reverse | first 6 -}} + {{- range $posts.ByDate.Reverse | first 6 -}} {{- $postType := partial "post-type.txt" . -}} {{- $typeSVG := index .Site.Params.defaultSVG ( partial "kebab.txt" $postType) -}}