diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2023-01-24 13:19:23 +0100 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2023-01-24 13:19:23 +0100 |
commit | 3f97311514902ae76a905f7c8e7ed7031b4121de (patch) | |
tree | 13e631c223c088ac47366380c66a815bdcde21bb /src/gmi/tpl/posts | |
parent | b766eefe7cfaf334aeb607171250a2b4b9eaabf0 (diff) |
Add notice atop md->gmi translated pages
Diffstat (limited to 'src/gmi/tpl/posts')
-rw-r--r-- | src/gmi/tpl/posts/post.gmi | 8 |
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 "" -}} |