diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2023-01-28 14:26:03 +0000 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2023-01-28 14:26:03 +0000 |
commit | aa9c5e112777180d4ee9732a2ec6e461b9099623 (patch) | |
tree | 0b47acf064004e0ae7454bc3638f59397b197426 /templates | |
parent | 0ede0dc1b05a43460785bd08dbe580b4642781aa (diff) | |
download | blog-aa9c5e112777180d4ee9732a2ec6e461b9099623.tar.gz blog-aa9c5e112777180d4ee9732a2ec6e461b9099623.tar.bz2 blog-aa9c5e112777180d4ee9732a2ec6e461b9099623.zip |
Implement logic for drafts
Current logic is drafts are published, but do not listed on the feed page.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/post.html | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/templates/post.html b/templates/post.html index 8da33b2..56bdef8 100644 --- a/templates/post.html +++ b/templates/post.html @@ -20,9 +20,14 @@ <main> <h1>{{ title }}</h1> -<p><i><time datetime="{{ date }}" pubdate> -{{ date }} -</time></i></p> +<p> + <i><time datetime="{{ date }}" pubdate> + {{ date }} + </time></i> +{% if status == "draft" %} +• {{ status }} +{% endif %} +</p> <content> {{ content|safe }} |