aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/index/announcements.html
blob: 0be383565201c9bb2e505c25a4e305002b6191b0 (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
{{ $incidents := where .Site.RegularPages "Params.section" "issue" }}
{{ $active := where $incidents "Params.resolved" "=" false }}

{{ if $active }}
  <div class="announcement-box" style="border-bottom: 0">
    {{ range $active }}
      <div class="padding">
        <p>
          <a href="{{ .Permalink }}"><strong class="bold">{{ .Title }} →</strong></a>
        </p>

        <p><small>
          {{ range .Params.Affected }}
            <a href="/affected/{{ . | urlize }}" class="tag no-underline">{{ . }}</a>
          {{ end }}
        </small></p>

        {{ .Content | safeHTML | truncate 500 "…" }}
        <p></p>
      </div>
      <hr class="clean announcement-box">
    {{ end }}
  </div>
{{ end }}