diff --git a/layouts/partials/programs/list.html b/layouts/partials/programs/list.html index ddd3d9be1a758789c95498e241221e834d0b42cb..0fccc9daa5c4cc4219349eada600c7ad8ea3d9bd 100644 --- a/layouts/partials/programs/list.html +++ b/layouts/partials/programs/list.html @@ -12,8 +12,12 @@ {{ partial "contents/list.html" . }} <div class="container"> {{ partial "diplomas/diplomas-select.html" . }} + {{/* Toutes les formations... */}} {{ $programs := where .Site.Pages "Section" "programs" }} + {{/* mais pas l'accueil des formations... */}} {{ $programs = where $programs "Permalink" "!=" .FirstSection.Permalink }} + {{/* et pas non plus les pages enfants (parcours) */}} + {{ $programs = where $programs "Params.parent" "eq" nil }} {{ partial "programs/programs-list.html" $programs }} </div> </div>