From 4ac2861d28676bc886cf80b43a087f1f0044696a Mon Sep 17 00:00:00 2001 From: Matt Arnold Date: Wed, 9 Apr 2025 18:18:37 -0400 Subject: Threaded blogging works --- templates/post.html | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'templates/post.html') diff --git a/templates/post.html b/templates/post.html index 8272d37..d759da4 100644 --- a/templates/post.html +++ b/templates/post.html @@ -1,8 +1,24 @@ {% extends 'base.html' %} {% block content %} -

{{ post.title }}

-

{{ post.created_at.strftime('%Y-%m-%d %H:%M') }}

-
{{ post.content|markdown|safe }}
+{% if post.parent != 0 %} + Previous +
+{% endif %} +

{{ post.title }}

+

{{ post.created_at.strftime('%Y-%m-%d %H:%M') }}

+

Authour: {{post.authour.name}}

+
{{ post.content|markdown|safe }}
+
+ Reply ~ Back to posts -{% endblock %} +
+
+

Replies to this

+
+ +
+{% endblock %} \ No newline at end of file -- cgit 1.4.1-2-gfad0