From 8d92bdf7da95e1085485c0e60b9dac19c246e235 Mon Sep 17 00:00:00 2001 From: Alexander Kavon Date: Tue, 23 Jan 2024 06:33:20 -0500 Subject: move ui templates into src, update conf to handle other paths, export User Insert Hooks --- src/ui/pages/post/get.tmpl.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/ui/pages/post/get.tmpl.html (limited to 'src/ui/pages/post/get.tmpl.html') diff --git a/src/ui/pages/post/get.tmpl.html b/src/ui/pages/post/get.tmpl.html new file mode 100644 index 0000000..b32bd1c --- /dev/null +++ b/src/ui/pages/post/get.tmpl.html @@ -0,0 +1,26 @@ +{{define "title"}}{{.post.Title}}{{end}} + +{{define "main"}} + {{.post.Title}} + + {{range $tag := .post.R.Tags}} + + {{end}} + + {{.post.URL.String}} (Pretty URL) + by {{.post.R.User.Username}} + {{.post.CreatedAt.Format "Jan 02, 2006 15:04"}} + + Flag + Hide + + {{ if .post.Description.Valid }} +

{{.post.Description.String}}

+ {{end}} +
+ + + +
+ {{template "comments" .}} +{{end}} -- cgit v1.2.3