aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/index/announcements.html
diff options
context:
space:
mode:
authorMantas Vilčinskas <hi@mnts.lt>2023-12-01 16:06:56 +0200
committerGitHub <noreply@github.com>2023-12-01 16:06:56 +0200
commit627b76ac2f904edadc69ee0e7b8776078bb73fc0 (patch)
tree7cfd3170dee0ba90ee32caf3e7f9412cb439e292 /layouts/partials/index/announcements.html
parented2321eb20b63f8e24af4aaf0df344e5b78de8f4 (diff)
parent1674bfc8509def65ea62e215450d009516f183e5 (diff)
cState v5.6.0 #300
cState v5.6.0
Diffstat (limited to 'layouts/partials/index/announcements.html')
-rw-r--r--layouts/partials/index/announcements.html4
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 }}