summaryrefslogtreecommitdiff
path: root/src/gmi/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmi/tpl')
-rw-r--r--src/gmi/tpl/posts/post.gmi8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gmi/tpl/posts/post.gmi b/src/gmi/tpl/posts/post.gmi
index 0e7cd74..09d20fe 100644
--- a/src/gmi/tpl/posts/post.gmi
+++ b/src/gmi/tpl/posts/post.gmi
@@ -1,5 +1,13 @@
{{ $post := .GetPostByID (.GetQueryValue "id" "") -}}
+{{ 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 "" -}}