diff options
Diffstat (limited to 'layouts/partials/index/announcements.html')
-rw-r--r-- | layouts/partials/index/announcements.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/layouts/partials/index/announcements.html b/layouts/partials/index/announcements.html new file mode 100644 index 0000000..a02045e --- /dev/null +++ b/layouts/partials/index/announcements.html @@ -0,0 +1,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 }}
\ No newline at end of file |