{{ define "main" }} {{ .Content }} Recent posts: <ul> {{ range first 10 (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }} <li><a href="{{ .Permalink }}">{{ .Title }}</a></li> {{ end }} </ul> {{ end }}