{{ define "main" }}
    {{ .Content }}
    <h1>Posts</h1>
    # latest 20 posts
    {{ range first 20 .Site.RegularPages }}
        {{ if eq .Section "post" }}
            <h2><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
        {{ end }}
    {{ end }}
{{ end }}
