From 290aa0df0204038b8c7b23c28d716755e468f169 Mon Sep 17 00:00:00 2001 From: Mantas <11616378+mistermantas@users.noreply.github.com> Date: Fri, 25 Jan 2019 16:53:51 +0200 Subject: fix #42, #51; v4-dev1 begins --- layouts/partials/index/announcements.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 layouts/partials/index/announcements.html (limited to 'layouts/partials/index/announcements.html') 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 }} +
+ {{ range $active }} +
+

{{ .Title }}

+ {{ .Content | safeHTML | truncate 500 "…" }} +

{{ T "continueReading" }}

+
+ {{ else }}{{ end }} +
+{{ end }} \ No newline at end of file -- cgit v1.2.3-70-g09d2