We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dd1d6a commit 977be66Copy full SHA for 977be66
site/layouts/partials/incident.html
@@ -6,9 +6,10 @@
6
<div class="incident-description">
7
{{- .Content -}}
8
</div>
9
- {{- $alert := index .Site.Data.severity.alerts .Params.severity -}}
+ {{- $severity := .Params.severity | default "under-maintenance" -}}
10
+ {{- $alert := index .Site.Data.severity.alerts $severity -}}
11
12
<p class="incident-status color-{{ $alert }}">
- {{ index .Site.Data.severity.descriptions .Params.severity }}
13
+ {{ index .Site.Data.severity.descriptions $severity }}
14
</p>
15
0 commit comments