{{ template "_header.html" .}}

<main class="content container">
    {{$.Content}}

    <h2>Latest blog posts</h2>
    <ul>
        {{ range (slice $.Posts 0 5) }}
        <li>
            <a href="{{ .Permalink }}">{{ .Title }}</a><br />
            <small>{{ .DatePublished.Format "Jan 2, 2006" }}</small>
        </li>
        {{ end }}
    </ul>
    <p>View <a href="/blog/">all posts on my blog</a>.</p>
</main>

{{ template "_footer.html" }}
