{{ define "main" }} {{ $pagination := .Paginator }} {{ partial "pagination.html" $pagination }} {{ if eq $pagination.PageNumber 1 }}

{{ .Title }}

{{ partial "content.html" .Content }}
{{ end }} {{ range $pagination.Pages }}

{{ partial "content.html" .Title }}

{{ partial "metadata.html" . }}

{{ partial "content.html" .Content | truncate 500 }} Read more »

{{ end }} {{ partial "pagination.html" $pagination }} {{ end }}