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