mediocre-blog/srv/src/http/tpl/post.html

45 lines
936 B
HTML
Raw Normal View History

2022-05-13 17:47:29 +00:00
{{ define "body" }}
<p><em>
Published {{ DateTimeFormat .Payload.PublishedAt }}
{{ if not .Payload.LastUpdatedAt.IsZero }}
<br/>Last updated {{ DateTimeFormat .Payload.LastUpdatedAt }}
2022-05-13 17:47:29 +00:00
{{ end }}
</em></p>
<h1 id="post-headline">
{{ .Payload.Title }}
</h1>
<p>
<em>- {{ .Payload.Description }}</em>
</p>
<hr/>
{{ .Payload.Body }}
2022-05-13 17:47:29 +00:00
{{ if (or .Payload.SeriesPrevious .Payload.SeriesNext) }}
<hr/>
<p><em>
2022-05-13 17:47:29 +00:00
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>
2022-05-13 17:47:29 +00:00
{{ end }}
{{ if (and .Payload.SeriesNext .Payload.SeriesPrevious) }}
</br>
{{ end }}
{{ if .Payload.SeriesNext }}
2022-05-20 14:36:52 +00:00
Next: <a href="{{ PostURL .Payload.SeriesNext.ID }}">{{ .Payload.SeriesNext.Title }}</a></br>
2022-05-13 17:47:29 +00:00
{{ end }}
2022-05-13 17:47:29 +00:00
</em></p>
{{ end }}
{{ end }}
{{ template "base.html" . }}