Skip to content
Snippets Groups Projects
Commit 0d5821d7 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

limit to root programs

parent 61099d23
No related branches found
No related tags found
No related merge requests found
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment