summaryrefslogtreecommitdiff
path: root/src/http/tpl/post.html
blob: efef203970b86bc66541668ffc0129d234f523ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{{ define "body" }}

<h1 id="post-headline">
  {{ .Payload.Title }}
</h1>

{{ if ne .Payload.Description "" }}
<p>
  <em>- {{ .Payload.Description }}</em>
</p>
{{ end }}

<hr/>

{{ .Payload.Body }}

<p><em>
  Published {{ DateTimeFormat .Payload.PublishedAt }}
</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" . }}