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/post.html | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/http/tpl/post.html (limited to 'src/http/tpl/post.html') 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" }} + +

+ {{ .Payload.Title }} +

+ +

+ - {{ .Payload.Description }} +

+ +
+ +{{ .Payload.Body }} + +

+ Published {{ DateTimeFormat .Payload.PublishedAt }} + {{ if not .Payload.LastUpdatedAt.IsZero }} +
Last updated {{ DateTimeFormat .Payload.LastUpdatedAt }} + {{ end }} +

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

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

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