{{ define "title" }}
<title>{{ blog.Title }}</title>
{{ end }}
{{ define "main" }}
<main>
{{ range $i, $post := .Posts }}
{{ include "summary" . }}
{{ if .HasPrev }}
<p><a href="{{ .Prev }}">Prev</a></p>
{{ if .HasNext }}
<p><a href="{{ .Next }}">Next</a></p>
</main>
{{ define "index" }}
{{ template "base" . }}