Really fix opposites order in homepage and section pages

master
Quentin Duchemin 2023-09-28 10:30:34 +02:00
parent 70ba8d0cb1
commit 46c7c5df8d
Signed by: Chosto
GPG Key ID: 96AB8AE7DFEA3D74
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
--- ---
title: Pourquoi écrire ce dossier? title: Pourquoi écrire ce dossier?
subtitle: D'un intérêt personnel à la recherche universitaire subtitle: D'un intérêt personnel à la recherche universitaire
date: 2023-09-28 publishdate: 2023-09-28
weight: 1 weight: 1
categories: categories:
- Santé - Santé

View File

@ -8,7 +8,7 @@
{{- /* Custom paginator with only blog posts (e.g. avoid "À propos") which {{- /* Custom paginator with only blog posts (e.g. avoid "À propos") which
are already written (avoid "incoming" posts of thematic series), are already written (avoid "incoming" posts of thematic series),
ordered from newest to oldest */}} 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 }} {{ range $paginator.Pages }}
<div class="column is-variable is-one-third py-0 my-4"> <div class="column is-variable is-one-third py-0 my-4">
{{ .Render "summary" }} {{ .Render "summary" }}