From a4803160b5cc9b566057b07bdfd8e3d72a0b0a21 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 8 Feb 2024 14:22:36 -0600 Subject: [PATCH] fixing newsletters listing --- content/staff/_index.md | 2 +- layouts/newsletters/list.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/staff/_index.md b/content/staff/_index.md index 93d4400..6b26aeb 100644 --- a/content/staff/_index.md +++ b/content/staff/_index.md @@ -16,4 +16,4 @@ cascade: --- Staff are what make TFC happen. These people give their time, energy, and money to making sure TFC happens and are constantly following the Lord to His purpose for the communities they work in. -> If you'd like to check out newsletters written by ALL the staff [CLICK HERE](/newsletters "newsletters") +> If you'd like to check out newsletters written by ALL the staff [click here](/newsletters "newsletters"). diff --git a/layouts/newsletters/list.html b/layouts/newsletters/list.html index 41bca3a..37ba1c5 100644 --- a/layouts/newsletters/list.html +++ b/layouts/newsletters/list.html @@ -24,7 +24,7 @@ {{ .Content | emojify }} - {{ if gt .Pages 0 }} + {{ if gt (where (where .Site.RegularPages "Section" "staff") "Params.newsletter" true) 0 }}
{{ range where (where .Site.RegularPages "Section" "staff") "Params.newsletter" true }} {{ partial "article-link.html" . }}