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

Ajustement des listes des années pour les événements (#959)

parent 8aff5188
No related branches found
Tags v7.2.22
No related merge requests found
......@@ -4,11 +4,13 @@
<h2 class="sr-only">{{ i18n "events.archives.by_year" }}</h2>
<ol>
{{ range . }}
<li>
<a href="{{ .Permalink }}" title="{{ i18n "events.archives.list.title" (dict "year" .Title)}}">{{ .Title }}</a>
{{ $count := len (where .RegularPagesRecursive ".Params.is_month" nil) }}
<p>{{ i18n "events.count" $count }}</p>
</li>
{{ if .Params.is_year }}
<li>
<a href="{{ .Permalink }}" title="{{ i18n "events.archives.list.title" (dict "year" .Title)}}">{{ .Title }}</a>
{{ $count := len (where .RegularPagesRecursive ".Params.is_month" nil) }}
<p>{{ i18n "events.count" $count }}</p>
</li>
{{ end }}
{{ end }}
</ol>
</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