From 0cde429a45c379c4781e31e5e88b853899e452a8 Mon Sep 17 00:00:00 2001 From: Mantas <11616378+mistermantas@users.noreply.github.com> Date: Tue, 18 Jun 2019 19:31:25 +0300 Subject: Yearly seperation of incidents --- layouts/partials/index/incidents-yearly.html | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 layouts/partials/index/incidents-yearly.html (limited to 'layouts') 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") }} +

{{ .Key }}

+ + {{ range .Pages }} + {{ .Render "small" }} + {{ end }} +{{ end }} -- cgit v1.2.3-70-g09d2