{{ define "body" }} {{ $page := .GetQueryIntValue "page" 0 -}} {{ $getPostsRes := .GetPosts $page 20 -}}

Back to Admin

Posts

{{ if gt $page 0 }}

< < Previous Page

{{ end }} {{ range $getPostsRes.Posts }} {{ end }}
{{ .PublishedAt.Local.Format "2006-01-02 15:04:05 MST" }} {{ .Title }} Edit
{{ if $getPostsRes.HasMore }}

Next Page > >

{{ end }} {{ end }} {{ template "base.html" . }}