From 4f01edb9230f58ff84b0dd892c931ec8ac9aad55 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 13 Sep 2022 12:56:08 +0200 Subject: move src out of srv, clean up default.nix and Makefile --- src/http/tpl/edit-post.html | 142 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 src/http/tpl/edit-post.html (limited to 'src/http/tpl/edit-post.html') diff --git a/src/http/tpl/edit-post.html b/src/http/tpl/edit-post.html new file mode 100644 index 0000000..f8e2730 --- /dev/null +++ b/src/http/tpl/edit-post.html @@ -0,0 +1,142 @@ +{{ define "body" }} + +

+ {{ if .Payload.IsDraft }} + + Back to Drafts + + {{ else }} + + Back to Posts + + {{ end }} +

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Unique ID + + {{ if eq .Payload.Post.ID "" }} + + {{ else if .Payload.IsDraft }} + {{ .Payload.Post.ID }} + + {{ else }} + {{ .Payload.Post.ID }} + + {{ end }} +
Tags (space separated) + + + {{ if gt (len .Payload.Tags) 0 }} + + Existing tags: + {{ range $i, $tag := .Payload.Tags }} + {{ if ne $i 0 }} {{ end }}{{ $tag }} + {{ end }} + + {{ end }} +
Series + +
Title + +
Description + +
+ +

+ +

+ +

+ + + + {{ if .Payload.IsDraft }} + + + + + + + + + {{ else }} + + {{ end }} + +

+ +
+ +{{ end }} + +{{ template "base.html" . }} -- cgit v1.2.3