{{ define "content" }}
{{ .Content }}
{{ if gt (len ( where .Site.RegularPages "Section" "posts" )) 0 }}
<h1>Latest Post</h1>
<section>
{{ range (first 3 (where .Site.RegularPages "Section" "posts" ).ByDate.Reverse) }}
<p>
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "2006-01-02" .Date }}</time>
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
</section>