diff options
author | Mantas <11616378+mistermantas@users.noreply.github.com> | 2019-04-08 21:46:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-08 21:46:03 +0300 |
commit | d69ebc475fc67c65c52c206b7cc1eb70e1633645 (patch) | |
tree | 4808b9ae6e28372ced486b1e827d8300406dcbe0 /layouts/partials/index/announcements.html | |
parent | 9c2eb26b5732e0a9087dd024f7fd0b10fec9ef74 (diff) | |
parent | 7f610d23ed696d050ed2d1e405f6bba339a497c4 (diff) |
cState v3.1.0 | #54 | here goes nothing
cState v3.1.0
Diffstat (limited to 'layouts/partials/index/announcements.html')
-rw-r--r-- | layouts/partials/index/announcements.html | 24 |
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 |