summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2022-07-19 11:34:46 +0100
committerMatthew Lemon <matt@matthewlemon.com>2022-07-19 11:34:46 +0100
commit1b40d557a4522f0501bffea761c8dd7c0ff45c1d (patch)
tree8073342be04e420c8665e50d08f9d77e58eed187
parent3bba31258760eb4ecbc3ebd38b3cd5123c6b5fdd (diff)
limit posts on blog page to blog section - now categories in layout
-rw-r--r--themes/problematic/layouts/partials/posts.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/problematic/layouts/partials/posts.html b/themes/problematic/layouts/partials/posts.html
index e31bf6c..c65664e 100644
--- a/themes/problematic/layouts/partials/posts.html
+++ b/themes/problematic/layouts/partials/posts.html
@@ -7,7 +7,7 @@
<ul>
- {{ range where site.RegularPages ".Params.categories" "intersect" (slice ($key |title)) }}
+ {{ range where (where site.RegularPages "Section" "blog") ".Params.categories" "intersect" (slice ($key |title)) }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}