simplify posts loop to look for all pages in subsection

This commit is contained in:
acarril 2023-05-03 20:00:00 -04:00
parent 176f9928d5
commit 9329022516

View file

@ -10,7 +10,7 @@
<!-- Print the "post" (or the collection) -->
<ul id="posts">
{{- range where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ .Render "li" }}
{{- range .Pages }}
{{ .Render "li_posts" }}
{{- end }}
</ul>