From bf8412969a60b5da29d622418e8a4efd9d444a12 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 16 Aug 2022 21:32:50 -0600 Subject: finish switching to classless, got a color scheme worked out too --- srv/src/http/tpl/posts.html | 36 +++++++++++++----------------------- 1 file changed, 13 insertions(+), 23 deletions(-) (limited to 'srv/src/http/tpl/posts.html') diff --git a/srv/src/http/tpl/posts.html b/srv/src/http/tpl/posts.html index 885018d..7416ee6 100644 --- a/srv/src/http/tpl/posts.html +++ b/srv/src/http/tpl/posts.html @@ -1,36 +1,22 @@ -{{ 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" }} -

+

- {{ template "posts-nextprev" . }} + {{ if ge .Payload.PrevPage 0 }} +

+ < < Previous Page +

+ {{ end }} - +
{{ range .Payload.Posts }} - +
{{ .PublishedAt }}{{ .PublishedAt.Local.Format "2006-01-02 15:04:05 MST" }} {{ .Title }} @@ -50,7 +36,11 @@
- {{ template "posts-nextprev" . }} + {{ if ge .Payload.NextPage 0 }} +

+ Next Page > > +

+ {{ end }} {{ end }} -- cgit v1.2.3