7
0
Fork 0
This repository has been archived on 2024-10-15. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website_archive/themes/nluug/layouts/partials/announcements.html

24 lines
790 B
HTML
Raw Permalink Normal View History

2023-06-27 10:33:26 +02:00
{{ $context := . }}
{{ range $.Site.Data.announcements }}
{{ $date_end := .date_end | time }}
{{ $date_start := .date_start | time }}
{{ if and
(ge now $date_start)
(le now $date_end)
}}
<div class="max-width ta-r">
{{ range $index,$key := .status }}
{{ if eq $.Site.Language.Lang .language }}
<span class="darkgreen bold">{{ .message }}</span>
{{ range .links }}
<small>
{{ if .link }}[<a href="{{ relref $context .link }}">{{ .name }}</a>]{{ end }}
{{ if .link_external }}[<a href="{{ .link_external }}" rel="nofollow noopener">{{ .name }}</a>]{{ end }}
</small>
{{ end }}
{{ end }}
{{ end }}
</div>
{{ end }}
{{ end }}