From 09acb111a2b22f5794541fac175b024dd0f9100e Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Fri, 20 May 2022 11:17:31 -0600 Subject: Rename api package to http --- srv/src/http/tpl/post.html | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 srv/src/http/tpl/post.html (limited to 'srv/src/http/tpl/post.html') diff --git a/srv/src/http/tpl/post.html b/srv/src/http/tpl/post.html new file mode 100644 index 0000000..474d7c2 --- /dev/null +++ b/srv/src/http/tpl/post.html @@ -0,0 +1,48 @@ +{{ define "body" }} + +
+

+ {{ .Payload.Title }} +

+
+ {{ DateTimeFormat .Payload.PublishedAt }} +  •  + {{ if not .Payload.LastUpdatedAt.IsZero }} + (Updated {{ DateTimeFormat .Payload.LastUpdatedAt }}) +  •  + {{ end }} + {{ .Payload.Description }} +
+
+ +{{ if (or .Payload.SeriesPrevious .Payload.SeriesNext) }} +

+ This post is part of a series:
+ {{ if .Payload.SeriesPrevious }} + Previously: {{ .Payload.SeriesPrevious.Title }}
+ {{ end }} + {{ if .Payload.SeriesNext }} + Next: {{ .Payload.SeriesNext.Title }}
+ {{ end }} +

+{{ end }} + +
+ {{ .Payload.Body }} +
+ +{{ if (or .Payload.SeriesPrevious .Payload.SeriesNext) }} +

+ If you liked this post, consider checking out other posts in the series:
+ {{ if .Payload.SeriesPrevious }} + Previously: {{ .Payload.SeriesPrevious.Title }}
+ {{ end }} + {{ if .Payload.SeriesNext }} + Next: {{ .Payload.SeriesNext.Title }}
+ {{ end }} +

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