summaryrefslogtreecommitdiff
path: root/src/http/tpl/post.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/tpl/post.html')
-rw-r--r--src/http/tpl/post.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/http/tpl/post.html b/src/http/tpl/post.html
new file mode 100644
index 0000000..23500eb
--- /dev/null
+++ b/src/http/tpl/post.html
@@ -0,0 +1,44 @@
+{{ define "body" }}
+
+<h1 id="post-headline">
+ {{ .Payload.Title }}
+</h1>
+
+<p>
+ <em>- {{ .Payload.Description }}</em>
+</p>
+
+<hr/>
+
+{{ .Payload.Body }}
+
+<p><em>
+ Published {{ DateTimeFormat .Payload.PublishedAt }}
+ {{ if not .Payload.LastUpdatedAt.IsZero }}
+ <br/>Last updated {{ DateTimeFormat .Payload.LastUpdatedAt }}
+ {{ end }}
+</em></p>
+
+{{ if (or .Payload.SeriesPrevious .Payload.SeriesNext) }}
+<hr/>
+<p><em>
+ This post is part of a series.<br/>
+
+ {{ if .Payload.SeriesPrevious }}
+ Previously: <a href="{{ PostURL .Payload.SeriesPrevious.ID }}">{{ .Payload.SeriesPrevious.Title }}</a>
+ {{ end }}
+
+ {{ if (and .Payload.SeriesNext .Payload.SeriesPrevious) }}
+ </br>
+ {{ end }}
+
+ {{ if .Payload.SeriesNext }}
+ Next: <a href="{{ PostURL .Payload.SeriesNext.ID }}">{{ .Payload.SeriesNext.Title }}</a></br>
+ {{ end }}
+
+</em></p>
+{{ end }}
+
+{{ end }}
+
+{{ template "base.html" . }}