From 4e57e438c6c70978c2cb7d3fca0210899a007ac0 Mon Sep 17 00:00:00 2001 From: Richard Dern Date: Thu, 6 Nov 2025 11:23:11 +0100 Subject: [PATCH] Correction de l'affichage du sommaire de dossiers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Les pages qui ne spécifiaient pas un poids étaient exclues. --- themes/42/layouts/_partials/dossier-summary.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/themes/42/layouts/_partials/dossier-summary.html b/themes/42/layouts/_partials/dossier-summary.html index 56d32bc1..1bfd3a93 100644 --- a/themes/42/layouts/_partials/dossier-summary.html +++ b/themes/42/layouts/_partials/dossier-summary.html @@ -6,8 +6,7 @@ {{- $dossierID := . }} {{- $allPages := site.RegularPages }} {{- $filtered := where $allPages "Params.dossier" "intersect" (slice $dossierID) }} -{{- $valid := where $filtered "Weight" "gt" 0 }} -{{- $sorted := sort $valid "Weight" }} +{{- $sorted := sort $filtered "Weight" }} {{- if gt (len $sorted) 1 }} {{- $index := -1 }}