From 46c7c5df8d79d368b376c495cc77e31208dd52f7 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Thu, 28 Sep 2023 10:30:34 +0200 Subject: [PATCH] Really fix opposites order in homepage and section pages --- content/posts/lsd/01-intro/index.md | 2 +- themes/chosto/layouts/_default/list.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/posts/lsd/01-intro/index.md b/content/posts/lsd/01-intro/index.md index 30e4bc0..48270e4 100644 --- a/content/posts/lsd/01-intro/index.md +++ b/content/posts/lsd/01-intro/index.md @@ -1,7 +1,7 @@ --- title: Pourquoi écrire ce dossier ? subtitle: D'un intérêt personnel à la recherche universitaire -date: 2023-09-28 +publishdate: 2023-09-28 weight: 1 categories: - Santé diff --git a/themes/chosto/layouts/_default/list.html b/themes/chosto/layouts/_default/list.html index 58497d4..7c669ba 100644 --- a/themes/chosto/layouts/_default/list.html +++ b/themes/chosto/layouts/_default/list.html @@ -8,7 +8,7 @@ {{- /* Custom paginator with only blog posts (e.g. avoid "À propos") which are already written (avoid "incoming" posts of thematic series), ordered from newest to oldest */}} - {{ $paginator := .Paginate (where (where site.RegularPages ".Type" "in" site.Params.mainSections) ".Params.incoming" "!=" true) }} + {{ $paginator := .Paginate (where (where site.RegularPages.ByDate ".Type" "in" site.Params.mainSections) ".Params.incoming" "!=" true).Reverse }} {{ range $paginator.Pages }}
{{ .Render "summary" }}