Skip to content
Snippets Groups Projects
Unverified Commit e7e4a762 authored by Arnaud Levy's avatar Arnaud Levy Committed by GitHub
Browse files

Merge pull request #324 from osunyorg/only-root-programs

Formations limitées aux parents (pas de parcours)
parents 61099d23 0d5821d7
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