You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
494 B
21 lines
494 B
# mediocregopher's Posts
|
|
|
|
{{ $page := .GetQueryIntValue "page" 0 -}}
|
|
{{ $getPostsRes := .GetPosts $page 15 -}}
|
|
|
|
{{ if gt $page 0 -}}
|
|
=> /posts/?page={{ .Add $page -1 }} Previous Page
|
|
|
|
{{ end -}}
|
|
|
|
{{ range $getPostsRes.Posts -}}
|
|
=> {{ PostURL .ID }} {{ .PublishedAt.Format "2006-01-02" }} - {{ .Title }}
|
|
|
|
{{ end -}}
|
|
|
|
{{ if $getPostsRes.HasMore -}}
|
|
=> /posts/?page={{ .Add $page 1 }} Next page
|
|
{{ end }}
|
|
================================================================================
|
|
|
|
=> / Home
|
|
|