Fix date ordering

This commit is contained in:
JP Hastings-Spital 2024-05-10 10:44:45 +01:00
parent 3ceda835ad
commit 8334592ce2

View file

@ -3,7 +3,7 @@
<ol class="small-post-list">
{{- $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) -}}
<li>