mirror of
https://github.com/LukasJoswiak/etch.git
synced 2024-05-16 21:28:31 -04:00
simplify posts loop to look for all pages in subsection
This commit is contained in:
parent
176f9928d5
commit
9329022516
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue