summaryrefslogtreecommitdiff
path: root/src/gmi/tpl/posts
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2023-01-23 15:41:41 +0100
committerBrian Picciano <mediocregopher@gmail.com>2023-01-23 15:41:41 +0100
commitaba69d432959f3c1edc78b1ec2e0891120af5ae2 (patch)
tree70ab66ff1b65c3320e8079b3bac5465d4dae6ba5 /src/gmi/tpl/posts
parentacec797048301c7d8713d9c914d776929c51b088 (diff)
Small formatting fixes on gmi site
Diffstat (limited to 'src/gmi/tpl/posts')
-rw-r--r--src/gmi/tpl/posts/index.gmi2
-rw-r--r--src/gmi/tpl/posts/post.gmi10
2 files changed, 6 insertions, 6 deletions
diff --git a/src/gmi/tpl/posts/index.gmi b/src/gmi/tpl/posts/index.gmi
index 60a62fd..232c0cb 100644
--- a/src/gmi/tpl/posts/index.gmi
+++ b/src/gmi/tpl/posts/index.gmi
@@ -23,7 +23,7 @@ much as the quality!
{{ if $getPostsRes.HasMore -}}
=> {{ BlogURL "posts" }}/?page={{ .Add $page 1 }} Next page
{{ end }}
---------------------------------------------------------------------------------
+================================================================================
=> {{ BlogURL "feed.xml" }} Subscribe to the RSS feed for updates
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