I have a folder in “content” called “projects” which has sub folders and also sub-sub folders. I’m trying to get the latest 12 pages content of all the sub-sub folders to show in a single list by date order.
My current code:
<ul>
{{ range .Sections }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ range .Sections }}
{{ range first 12 .Pages }}
<ul>
<li><a href="{{ .RelPermalink}}">{{ .Title }}</a></li>
</ul>
{{ end }}
{{ end }}
</li>
{{ end }}
</ul>
This shows the first 12 pages from each sub-sub section. I need to get them all in one list and only show the latest 12 regardless or which sub-sub section they are in