aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/index/incidents-yearly.html
blob: 5cc323a81459be7cf2539747c07482d44aa808b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
{{ $incidents := where .Site.RegularPages "Params.section" "issue" }}

{{ range ((where .Site.RegularPages "Params.section" "issue").GroupByDate "2006") }}
  <p class="center" id="{{ .Key }}"><a href="#{{ .Key }}" class="no-underline"><strong>{{ .Key }}</strong>
    <span class="faded">({{ len .Pages }})</span>
  </a></p>
  
  {{ range .Pages }}
    {{ .Render "small" }}
  {{ end }}
{{ end }}