diff options
author | Mantas Vilčinskas <hi@mnts.lt> | 2023-12-01 16:06:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-01 16:06:56 +0200 |
commit | 627b76ac2f904edadc69ee0e7b8776078bb73fc0 (patch) | |
tree | 7cfd3170dee0ba90ee32caf3e7f9412cb439e292 /layouts/partials/index | |
parent | ed2321eb20b63f8e24af4aaf0df344e5b78de8f4 (diff) | |
parent | 1674bfc8509def65ea62e215450d009516f183e5 (diff) |
cState v5.6.0 #300
cState v5.6.0
Diffstat (limited to 'layouts/partials/index')
-rw-r--r-- | layouts/partials/index/announcements.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/index/announcements.html b/layouts/partials/index/announcements.html index 2bb7f08..389d673 100644 --- a/layouts/partials/index/announcements.html +++ b/layouts/partials/index/announcements.html @@ -1,5 +1,7 @@ {{ $allPosts := where .Site.RegularPages "Params.section" "issue" }} -{{ $active := where $allPosts "Params.resolved" "=" false }} +{{ $allActive := where $allPosts "Params.resolved" "=" false }} +{{ $active := where $allActive "Params.pin" "!=" false }} +{{/* this $active checks if pin is explicitely set to false */}} {{ $informationals := where $allPosts "Params.informational" "=" true }} {{ $pinned := where $informationals "Params.pin" "=" true }} |