diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 00000000..7a2bbb9b --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,112 @@ +{{ partial "meta" . }} +{{ $title := .Title }} + +
+{{ . }}
+ {{ end }} + {{ end }} + {{ end }} + + + + {{ if not .Site.Params.disableComplexCalculations }} ++ + {{ $resolved := first 5 (where .Pages "Params.resolved" "=" true) }} + + {{ if gt $resolved 0 }} + {{ $.Scratch.Set "counter" 0 }} + {{ range $resolved }} + + {{ $t := (time .Params.ResolvedWhen) }} + {{ $timeDiff := (sub $t.Unix .Date.Unix) }} + {{ $diffInMin := (div $timeDiff 60) }} + + {{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") $diffInMin) }} + {{ end }} + + {{ end }} + +
+ {{ end }} + + + {{ len .Pages }} {{ T "entries" }}, {{ T "newestToOldest" }} + + +{{ T "noIncidentsDesc" }}
+ + + + {{ else }} + {{ $paginator := .Paginate $incidents .Site.Params.incidentPostsPerPage }} + {{ range $paginator.Pages }} + {{ .Render "small" }} + {{ end }} + + + {{ if gt $paginator.TotalPages 1 }} +