summaryrefslogtreecommitdiff
path: root/src/gmi/tpl/posts/index.gmi
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmi/tpl/posts/index.gmi')
-rw-r--r--src/gmi/tpl/posts/index.gmi19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/gmi/tpl/posts/index.gmi b/src/gmi/tpl/posts/index.gmi
index 9d0f6e2..60a62fd 100644
--- a/src/gmi/tpl/posts/index.gmi
+++ b/src/gmi/tpl/posts/index.gmi
@@ -1,10 +1,17 @@
# mediocregopher's Posts
{{ $page := .GetQueryIntValue "page" 0 -}}
-{{ $getPostsRes := .GetPosts $page 15 -}}
+
+{{ if eq $page 0 -}}
+Here you'll find an archive of all published posts. The content varies almost as
+much as the quality!
+
+{{ end -}}
+
+{{ $getPostsRes := .GetPosts $page 20 -}}
{{ if gt $page 0 -}}
-=> /posts/?page={{ .Add $page -1 }} Previous Page
+=> {{ BlogURL "posts" }}/?page={{ .Add $page -1 }} Previous Page
{{ end -}}
@@ -14,8 +21,10 @@
{{ end -}}
{{ if $getPostsRes.HasMore -}}
-=> /posts/?page={{ .Add $page 1 }} Next page
+=> {{ BlogURL "posts" }}/?page={{ .Add $page 1 }} Next page
{{ end }}
-================================================================================
+--------------------------------------------------------------------------------
+
+=> {{ BlogURL "feed.xml" }} Subscribe to the RSS feed for updates
-=> / Home
+{{ template "footer.gmi" . }}