]> git.p6c8.net - pcdenotes.git/blobdiff - notes/templates/note.html
Show offset to UTC in note publication date
[pcdenotes.git] / notes / templates / note.html
index 7f384f9f597cd025e9bfba2ebc2f9280d37c344e..60353b1558daf0e30aafe6fc0d58146efb45897e 100644 (file)
@@ -1,7 +1,7 @@
-{% load markdownify %}
-<article class="container mt-5{% if note.is_draft %} text-muted{% endif %}">
+{% load notes_extras %}
+<article{% if note.is_draft %} class="text-muted"{% endif %}>
     <h2><a href="{{ note.get_absolute_url }}"{% if note.is_draft %} class="text-muted"{% endif %}>{{ note.title }}</a></h2>
     {% if note.is_draft %}<p class="fw-bold">Status: Draft</p>{% endif %}
-    <div class="mt-3">{{ note.content|linebreaksbr|markdownify }}</div>
-    <p class="publication-date">Published on {{ note.created_at|date:"Y-m-d, H:i" }}</p>
+    <div>{{ note.content|markdown|safe }}</div>
+    <p class="publication-date">Published on {{ note.publication_date|date:"Y-m-d, H:i O" }}</p>
 </article>
\ No newline at end of file

patrick-canterino.de