summaryrefslogtreecommitdiff
path: root/srv/src/http/tpl/post.html
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-08-15 15:23:25 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-08-15 15:26:03 -0600
commit5bc4c2fe4eb2dd401380493d95e05badd7f2bf5d (patch)
tree9e4e35435d2899256c92f02298ec289006778f44 /srv/src/http/tpl/post.html
parentcd1d97bebf73ba513a3b89df92cc3030f264f7d8 (diff)
began using new.css, got rid of the old css almost entirely
Diffstat (limited to 'srv/src/http/tpl/post.html')
-rw-r--r--srv/src/http/tpl/post.html54
1 files changed, 25 insertions, 29 deletions
diff --git a/srv/src/http/tpl/post.html b/srv/src/http/tpl/post.html
index 474d7c2..f0cb327 100644
--- a/srv/src/http/tpl/post.html
+++ b/srv/src/http/tpl/post.html
@@ -1,45 +1,41 @@
{{ define "body" }}
-<header id="post-header">
- <h1 id="post-headline">
- {{ .Payload.Title }}
- </h1>
- <div class="light">
- {{ DateTimeFormat .Payload.PublishedAt }}
- &nbsp;•&nbsp;
- {{ if not .Payload.LastUpdatedAt.IsZero }}
- (Updated {{ DateTimeFormat .Payload.LastUpdatedAt }})
- &nbsp;•&nbsp;
- {{ end }}
- <em>{{ .Payload.Description }}</em>
- </div>
-</header>
-
-{{ if (or .Payload.SeriesPrevious .Payload.SeriesNext) }}
-<p class="light"><em>
- This post is part of a series:<br/>
- {{ if .Payload.SeriesPrevious }}
- Previously: <a href="{{ PostURL .Payload.SeriesPrevious.ID }}">{{ .Payload.SeriesPrevious.Title }}</a></br>
- {{ end }}
- {{ if .Payload.SeriesNext }}
- Next: <a href="{{ PostURL .Payload.SeriesNext.ID }}">{{ .Payload.SeriesNext.Title }}</a></br>
+<p><em>
+ Published {{ DateTimeFormat .Payload.PublishedAt }}
+ {{ if not .Payload.LastUpdatedAt.IsZero }}
+ <br/>Last updated {{ DateTimeFormat .Payload.LastUpdatedAt }}
{{ end }}
</em></p>
-{{ end }}
-<div id="post-content">
- {{ .Payload.Body }}
-</div>
+<h1 id="post-headline">
+ {{ .Payload.Title }}
+</h1>
+
+<p>
+ {{ .Payload.Description }}
+</p>
+
+<hr/>
+
+{{ .Payload.Body }}
{{ if (or .Payload.SeriesPrevious .Payload.SeriesNext) }}
-<p class="light"><em>
+<hr/>
+<p><em>
If you liked this post, consider checking out other posts in the series:<br/>
+
{{ if .Payload.SeriesPrevious }}
- Previously: <a href="{{ PostURL .Payload.SeriesPrevious.ID }}">{{ .Payload.SeriesPrevious.Title }}</a></br>
+ 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 }}