Merge pull request #26 from steveoh/hugo-new

Fix #25
This commit is contained in:
Jessica Parsons 2017-08-29 11:58:28 -07:00 committed by GitHub
commit 9ccdacc1d9
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{{ partial "header" . }} {{ partial "header" . }}
{{ $incidents := where .Site.Pages.ByDate.Reverse "Section" "incidents" }} {{ $incidents := where .Site.RegularPages.ByDate.Reverse "Section" "incidents" }}
{{ $active := where $incidents "Params.resolved" "!=" true }} {{ $active := where $incidents "Params.resolved" "!=" true }}
{{ partial "systems" (dict "content" . "incidents" $active) }} {{ partial "systems" (dict "content" . "incidents" $active) }}

View File

@ -6,9 +6,10 @@
<div class="incident-description"> <div class="incident-description">
{{- .Content -}} {{- .Content -}}
</div> </div>
{{- $alert := index .Site.Data.severity.alerts .Params.severity -}} {{- $severity := .Params.severity | default "under-maintenance" -}}
{{- $alert := index .Site.Data.severity.alerts $severity -}}
<p class="incident-status color-{{ $alert }}"> <p class="incident-status color-{{ $alert }}">
{{ index .Site.Data.severity.descriptions .Params.severity }} {{ index .Site.Data.severity.descriptions $severity }}
</p> </p>
</div> </div>