Use .Pages instead of site.RegularPages in list.html
This results in Section Pages only showing the pages of their respective Sections instead of showing all available articles.
This commit is contained in:
parent
a6b89f92e2
commit
fe94f1b2ff
@ -5,7 +5,7 @@
|
||||
|
||||
<div class="articles h-feed">
|
||||
<h1 class="post-title">{{ i18n .Title }}</h1>
|
||||
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
{{ $pages := where .Pages "Type" "in" site.Params.mainSections }}
|
||||
{{ range $pages }}
|
||||
<div class="post-short-list h-entry">
|
||||
<header class="post-header">
|
||||
|
Loading…
Reference in New Issue
Block a user