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/base.html | 65 ++++-------------- srv/src/http/tpl/edit-post.html | 141 ++++++++++++++++++++++------------------ srv/src/http/tpl/post.html | 2 +- srv/src/http/tpl/posts.html | 36 ++++------ 4 files changed, 102 insertions(+), 142 deletions(-) (limited to 'srv/src/http/tpl') diff --git a/srv/src/http/tpl/base.html b/srv/src/http/tpl/base.html index 7a31156..595ffe3 100644 --- a/srv/src/http/tpl/base.html +++ b/srv/src/http/tpl/base.html @@ -1,70 +1,27 @@ - + - - - - - +
- -

- Mediocre Blog - by - mediocregopher -  •  - Follow -  •  - RSS -

- + Mediocre Blog + by + mediocregopher +    //    + Follow +  /  + RSS +  /  + License: WTFPL
{{ template "body" . }} - - diff --git a/srv/src/http/tpl/edit-post.html b/srv/src/http/tpl/edit-post.html index 1a81df4..9a2f085 100644 --- a/srv/src/http/tpl/edit-post.html +++ b/srv/src/http/tpl/edit-post.html @@ -1,87 +1,96 @@ {{ define "body" }} -
+{{ if gt (len .Payload.Tags) 0 }} +

+ Existing tags: + + {{ range $i, $tag := .Payload.Tags }} + {{ if ne $i 0 }} {{ end }}{{ $tag }} + {{ end }} + +

+{{ end }} + + -
+ -
- +
+ + + + + + + + + + + + + - - -
- -
- +
+ + + -
- +
+ + + + +
+ Unique ID + {{ if eq .Payload.Post.ID "" }} - + {{ else }} - {{ .Payload.Post.ID }} - + {{ .Payload.Post.ID }} + {{ end }} - - -
- +
+

Tags (space separated)

+
-

- Existing tags: {{ range $i, $tag := .Payload.Tags }}{{ if ne $i 0 }} {{ end }}{{ $tag }}{{ end }} -

- - -
- + value="{{- range $i, $tag := .Payload.Post.Tags -}} + {{- if ne $i 0 }} {{ end }}{{ $tag -}} + {{- end -}} + "/> +
Series - +
Title - +
Description - - - - -
-
- -
-
- +
+ +

+ +

+ +

- + {{ if eq .Payload.Post.ID "" }} + + {{ else }} + + {{ end }} - + +

- - + {{ end }} {{ template "base.html" . }} diff --git a/srv/src/http/tpl/post.html b/srv/src/http/tpl/post.html index f0cb327..d4b24f4 100644 --- a/srv/src/http/tpl/post.html +++ b/srv/src/http/tpl/post.html @@ -12,7 +12,7 @@

- {{ .Payload.Description }} + - {{ .Payload.Description }}


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