aboutsummaryrefslogtreecommitdiff
path: root/layouts/issues/single.html
blob: 402c7941d51774e971bee5916dca44ac8ddf91da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{{ partial "meta" . }}

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

  <body class="issues single">
    <div class="contain">
      <a href="{{ .Site.BaseURL }}">← {{ T "goBack" }} <em>{{ .Site.Title }}</em></a>
    </div>

    <div class="contain">
      {{ .Render "issue" }} 
    </div>
    
    {{ if .Site.Params.enableLastMod }}
    <div class="contain center">
      <p>{{ T "lastChecked" }}:

        {{ if .Site.Params.dateFormat }}
        {{ .Lastmod.UTC.Format .Site.Params.dateFormat }}
      {{ else }}
        {{ .Lastmod.Format "January 2, 2006 at 3:04 PM" }}
      {{ end }}
      </p>
    </div>
    {{ end }}


    

    {{ partial "js" . }}
    {{ partial "footer" . }}
  </body>
</html>