diff options
author | Mantas <11616378+mistermantas@users.noreply.github.com> | 2019-06-18 19:31:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-18 19:31:25 +0300 |
commit | 0cde429a45c379c4781e31e5e88b853899e452a8 (patch) | |
tree | b6c9b78065fb337cd0cb59c018dfeb0edcd5e451 /layouts/partials/index/incidents-yearly.html | |
parent | dd1f1452494f9f58c8fdb361173d19d5596c56fc (diff) |
Yearly seperation of incidents
Diffstat (limited to 'layouts/partials/index/incidents-yearly.html')
-rw-r--r-- | layouts/partials/index/incidents-yearly.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/partials/index/incidents-yearly.html b/layouts/partials/index/incidents-yearly.html new file mode 100644 index 0000000..36f6e44 --- /dev/null +++ b/layouts/partials/index/incidents-yearly.html @@ -0,0 +1,9 @@ +{{ $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></a></p> + + {{ range .Pages }} + {{ .Render "small" }} + {{ end }} +{{ end }} |