summaryrefslogtreecommitdiff
path: root/src/gmi/tpl/posts/post.gmi
blob: b5680447ddec5317c528e5a0e72a967cc22b2db5 (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
{{ $post := .GetThisPost -}}

{{ if eq $post.Format "md" -}}
This post has been translated from it's original markdown format, if it seems busted it might appear better over HTTP:

=> {{ PostHTTPURL $post.ID }}

{{ end -}}

# 👻 {{ $post.Title }}

{{ if ne $post.Description "" -}}
> {{ $post.Description }}

{{ end -}}

{{ .PostGemtextBody $post }}

========================================

Published {{ $post.PublishedAt.Format "2006-01-02" }} by mediocregopher

{{- if $post.Series }}
{{ $seriesNextPrev := .GetPostSeriesNextPrevious $post -}}
{{ if or $seriesNextPrev.Next $seriesNextPrev.Previous }}
This post is part of a series!

{{ if $seriesNextPrev.Next -}}
=> {{ BlogURL "posts" }}/{{ $seriesNextPrev.Next.ID }}.gmi Next in the series: {{ $seriesNextPrev.Next.Title }}
{{ end -}}

{{ if $seriesNextPrev.Previous -}}
=> {{ BlogURL "posts" }}/{{ $seriesNextPrev.Previous.ID }}.gmi Prevous in the series: {{ $seriesNextPrev.Previous.Title }}
{{ end -}}

{{ end -}}
{{ else }}{{/* newline */}}
{{ end }}
=> {{ BlogURL "posts/" }} Browse all posts

=> {{ BlogURL "feed.xml" }} RSS feed

{{ template "footer.gmi" . }}