timeline post

This commit is contained in:
m
2026-03-14 12:47:47 +01:00
parent a273368af2
commit fc96124b76
3 changed files with 7 additions and 2 deletions

4
app.py
View File

@@ -116,6 +116,10 @@ def post_detail(post_id):
return "Post not found", 404
#get comments
comments = get_comments_for_post(post_id)
if post.id == 10:
post.template = "components/timeline_post.html"
# 2. Pass the post dictionary (with the raw HTML content) directly to the template
return render_template('post_detail.html', post=post, comments=comments, blog_title = TITLE)