Skip to content
Snippets Groups Projects
Unverified Commit 9ea9a95b authored by Alexis BENOIT's avatar Alexis BENOIT Committed by GitHub
Browse files

Correction de l'ordre des événements dans une catégorie (#963)

parent 733fd81d
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,10 @@ ol
> p
display: inline
.none
margin-bottom: $spacing-5
margin-top: $spacing-5
.document-content
.container > .lead
margin-bottom: $spacing-5
......
......@@ -15,9 +15,6 @@
margin-top: $spacing-5
.events__section
.none
margin-bottom: $spacing-5
margin-top: $spacing-5
.events-archives-years
margin-top: $spacing-5
ol
......
{{ $collection := where .events "Params.parent" "eq" nil }}
{{ $layout := site.Params.events.index.layout }}
{{ $per_page := .per_page | default site.Params.events.index.per_page }}
{{ $order := .order | default "asc" }}
{{/* {{ if $is_archive }}
{{ $order = "desc" }}
......@@ -12,7 +13,7 @@
{{/* {{ $agenda := $collection.GroupByDate site.Params.events.index.group_by_date $order }} */}}
{{/* {{ $collection := where $collection "Params.dates" "ne" nil }} */}}
{{ $agenda := $collection.GroupByDate site.Params.events.index.group_by_date "asc" }}
{{ $agenda := $collection.GroupByDate site.Params.events.index.group_by_date $order }}
{{ $paginator := .context.Paginate $agenda $per_page }}
{{ if not $paginator.PageGroups }}
......
......@@ -16,11 +16,12 @@
{{ end }}
<div class="container">
{{ $events := where .Pages "Section" "events" }}
{{ partial "events/partials/events.html" (dict
"events" $events
"context" .
"context" .
"order" "desc"
)}}
{{ partial "commons/pagination.html" . }}
{{ partial "commons/section/archive-link.html" . }}
</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