diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-07-19 11:34:46 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-07-19 11:34:46 +0100 |
commit | 1b40d557a4522f0501bffea761c8dd7c0ff45c1d (patch) | |
tree | 8073342be04e420c8665e50d08f9d77e58eed187 /themes | |
parent | 3bba31258760eb4ecbc3ebd38b3cd5123c6b5fdd (diff) |
limit posts on blog page to blog section - now categories in layout
Diffstat (limited to 'themes')
-rw-r--r-- | themes/problematic/layouts/partials/posts.html | 2 |
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 }} |