{{ $incidents := where .Site.RegularPages "Params.section" "issue" }} {{ $active := where $incidents "Params.resolved" "=" false }} {{ $isNotice := where $active "Params.severity" "=" "notice" }} {{ $isDisrupted := where $active "Params.severity" "=" "disrupted" }} {{ $isDown := where $active "Params.severity" "=" "down" }}
{{ range .Params.Affected }} {{ . }} {{ end }}
{{ if .Params.informational }} {{ else if .Params.Resolved }} {{ $resolvedTime := (time .Params.ResolvedWhen) }} {{ $timeDiff := (sub $resolvedTime.Unix .Date.Unix) }} {{ $diffInMin := (div $timeDiff 60) }} {{ $days := div $timeDiff 86400 }} {{ $remainingSeconds := mod $timeDiff 86400 }} {{ $hours := div $remainingSeconds 3600 }} {{ $minutes := div (mod $remainingSeconds 3600) 60 }}Add this period to your calendar
{{ $theTitle := .Title | default "Event" | plainify }} {{ $theDescription := .Content | default "" | plainify | jsonify }} {{ end }}