diff options
Diffstat (limited to 'src/gmi/tpl/posts/post.gmi')
-rw-r--r-- | src/gmi/tpl/posts/post.gmi | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gmi/tpl/posts/post.gmi b/src/gmi/tpl/posts/post.gmi index e95cb53..0e7cd74 100644 --- a/src/gmi/tpl/posts/post.gmi +++ b/src/gmi/tpl/posts/post.gmi @@ -9,15 +9,14 @@ {{ .PostBody $post }} --------------------------------------------------------------------------------- +================================================================================ -Published {{ $post.PublishedAt.Format "2006-01-02" }} +Published {{ $post.PublishedAt.Format "2006-01-02" }} by mediocregopher {{- if $post.Series }} - -This post is part of a 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 }} @@ -27,6 +26,7 @@ This post is part of a series! => {{ BlogURL "posts" }}/{{ $seriesNextPrev.Previous.ID }}.gmi Prevous in the series: {{ $seriesNextPrev.Previous.Title }} {{ end -}} +{{ end -}} {{ end }} => {{ BlogURL "posts/" }} Browse all posts |