{{ $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" }}

{{ .Title }}

{{ if .Site.Params.dateFormat }} {{ dateFormat .Site.Params.dateFormat .Params.date }} {{ else }} {{ .Date.Format "January 2, 2006 at 3:04 PM" }} {{ end }}

{{ 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 }}
{{ if lt $timeDiff 60 }} {{ T "resolved" }} {{ T "inUnderAMinute" }} {{ else }} {{ T "resolvedAfter" }} {{ if gt $days 0 }}{{ $days }}d {{ end }} {{ if gt $hours 0 }}{{ $hours }}h {{ end }} {{ $minutes }}m {{ if eq .Params.severity "down" }} {{ T "ofDowntime" }} {{ end }} {{ if .Site.Params.dateFormat }} {{ dateFormat .Site.Params.dateFormat .Params.resolvedWhen }} {{ else }} {{ dateFormat "January 2, 2006 at 3:04 PM" .Params.resolvedWhen }} {{ end }} {{ end }}
{{ else }} {{ if eq .Params.severity "down" }} ■ {{ T "thisIsDown" }} {{ else if eq .Params.severity "disrupted" }} ▲ {{ T "thisIsDisrupted" }} {{ else }} ◆ {{ T "thisIsNotice" }} {{ end }}
{{ T "downtimeOngoing" }}
{{ end }}
{{ .Content }}
{{ range .Params.Affected }}{{ if eq . "Deprecations" }}
{{ "Once an image has been deprecated you can no longer pull the `latest` or branch (`develop`, `nightly`, etc.) tags and will need to use a specific version tag if you still need access to the image. You can read more about this [here](/issues/2024-08-11-deprecation-changes/)." | markdownify}}
{{ end }}{{ end }} {{/* Add to Calendar */}} {{ if eq .Params.severity "notice" }}

Add this period to your calendar

{{ $theTitle := .Title | default "Event" | plainify }} {{ $theDescription := .Content | default "" | plainify | jsonify }} {{ end }}