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:
vringar 2021-06-28 14:16:55 +02:00
parent a6b89f92e2
commit fe94f1b2ff

View File

@ -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">