{{ define "main" }}
{{ $byLastMod := .Site.RegularPages.ByLastmod }} {{ $recent := ($byLastMod | last 30).Reverse }} {{ $leastRecent := $byLastMod | first 10 }}

Last Updated

{{ partial "maintenance-pages-table" $recent }}

Least Recently Updated

{{ partial "maintenance-pages-table" $leastRecent }} {{/* Don't think this is possible with where directly. Should investigate. */}} {{ .Scratch.Set "todos" slice }} {{ range .Site.RegularPages }} {{ if .HasShortcode "todo" }} {{ $.Scratch.Add "todos" . }} {{ end }} {{ end }}

Pages marked with TODO

{{ partial "maintenance-pages-table" (.Scratch.Get "todos") }}
{{ end }}