{{ define "posts-nextprev" }} {{ if or (ge .Payload.PrevPage 0) (ge .Payload.NextPage 0) }}
{{ if ge .Payload.PrevPage 0 }} Newer {{ end }} {{ if ge .Payload.NextPage 0 }} Older {{ end }}
{{ end }} {{ end }} {{ define "body" }} {{ $csrfFormInput := .CSRFFormInput }}

{{ template "posts-nextprev" . }} {{ range .Payload.Posts }} {{ end }}
{{ .PublishedAt }} {{ .Title }}
{{ $csrfFormInput }}
{{ template "posts-nextprev" . }} {{ template "load-csrf.html" . }} {{ end }} {{ template "base.html" . }}