From e93346ffa90f6c09a9a57b48c6607925dc7ff46e Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 16 Dec 2019 12:57:30 +0100 Subject: Remove the public/ directory Now that all templates are provided by plugins, there's no need to have a public/ directory. Themes can be in /themes instead of /public/themes. --- themes/sourcehut/message.html | 86 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 themes/sourcehut/message.html (limited to 'themes/sourcehut/message.html') diff --git a/themes/sourcehut/message.html b/themes/sourcehut/message.html new file mode 100644 index 0000000..07b4ad9 --- /dev/null +++ b/themes/sourcehut/message.html @@ -0,0 +1,86 @@ +{{template "head.html"}} +{{template "nav.html"}} + +
+
+
+

+ {{if .Message.Envelope.Subject}} + {{.Message.Envelope.Subject}} + {{else}} + (No subject) + {{end}} +

+ +
+
+
+ +{{define "message-part-tree"}} + {{/* nested templates can't access the parent's context */}} + {{$ = index . 0}} + {{with index . 1}} + + {{if eq $.PartPath .PathString}}{{end}} + {{.String}} + {{if eq $.PartPath .PathString}}{{end}} + + {{if gt (len .Children) 0}} + + {{end}} + {{end}} +{{end}} + +
+
+
+ {{if .Body}} +
{{.Body}}
+ {{else}} +

Can't preview this message part.

+ Download + {{end}} +
+
+ {{template "message-part-tree" (tuple $ .Message.PartTree)}} +
+
+
+ +{{template "foot.html"}} + -- cgit v1.2.3-59-g8ed1b