<h2>Recent Posts</h2>
<ul>
  {{ range first 5 (where .Site.RegularPages "Type" "post") }}
    <li>
      <a href="{{ .Permalink }}">
        <time>{{ .Date.Format "January 2, 2006" }}</time> - {{ .Title }}
      </a>
    </li>
  {{ end }}
</ul>

