File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
{{ partial "header" . }}
2
2
3
- {{ $incidents := where .Site.Pages .ByDate.Reverse "Section" "incidents" }}
3
+ {{ $incidents := where .Site.RegularPages .ByDate.Reverse "Section" "incidents" }}
4
4
{{ $active := where $incidents "Params.resolved" "!=" true }}
5
5
6
6
{{ partial "systems" (dict "content" . "incidents" $active) }}
Original file line number Diff line number Diff line change 6
6
< div class ="incident-description ">
7
7
{{- .Content -}}
8
8
</ div >
9
- {{- $alert := index .Site.Data.severity.alerts .Params.severity -}}
9
+ {{- $severity := .Params.severity | default "under-maintenance" -}}
10
+ {{- $alert := index .Site.Data.severity.alerts $severity -}}
10
11
11
12
< p class ="incident-status color-{{ $alert }} ">
12
- {{ index .Site.Data.severity.descriptions .Params. severity }}
13
+ {{ index .Site.Data.severity.descriptions $ severity }}
13
14
</ p >
14
15
</ div >
You can’t perform that action at this time.
0 commit comments