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