aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/index/announcements.html
blob: a02045e96bbb1e7921165a8b28dfcb9d3870ad80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{{ $incidents := where .Site.RegularPages "Params.section" "issue" }}
{{ $active := where $incidents "Params.resolved" "=" false }}

{{ if $active }}
  <div class="announcement-box">
    {{ range $active }}
      <div class="padding">
        <p><strong class="bold">{{ .Title }}</strong></p>
        {{ .Content | safeHTML | truncate 500 "…" }}
        <p><a href="{{ .Permalink }}">{{ T "continueReading" }}</a></p>
      </div>
    {{ else }}{{ end }}
  </div>
{{ end }}