summaryrefslogtreecommitdiff
path: root/src/gmi/tpl/posts/post.gmi
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2023-01-21 16:01:52 +0100
committerBrian Picciano <mediocregopher@gmail.com>2023-01-21 16:01:52 +0100
commit7878db5c95e5eb430b7b878fe6eb8084f15441a7 (patch)
treeba440b7d7ee8c67aa40fe5d0a0b5331b3d693312 /src/gmi/tpl/posts/post.gmi
parent84c1322c44c68c19e88f9695ded286b26d1621aa (diff)
Initial implementation of post rendering over gmi
Diffstat (limited to 'src/gmi/tpl/posts/post.gmi')
-rw-r--r--src/gmi/tpl/posts/post.gmi9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gmi/tpl/posts/post.gmi b/src/gmi/tpl/posts/post.gmi
new file mode 100644
index 0000000..52ac5ff
--- /dev/null
+++ b/src/gmi/tpl/posts/post.gmi
@@ -0,0 +1,9 @@
+{{ $post := .GetPostByID (.GetQueryValue "id" "") -}}
+
+# {{ $post.Title }}
+
+{{ if ne $post.Description "" -}}
+> {{ $post.Description }}
+{{ end -}}
+
+{{ $post.Body }}