From 2fb2e4f3d1f7493dec73e57638edee84cad17ce2 Mon Sep 17 00:00:00 2001 From: m Date: Sat, 14 Mar 2026 19:46:41 +0100 Subject: [PATCH] chrismas --- app.py | 5 ++- static/css/components/timeline.css | 55 ++++++++---------------- templates/components/christmas_post.html | 5 +++ templates/components/post_renderer.html | 10 +---- templates/components/timeline_post.html | 1 - templates/post_detail.html | 10 +---- 6 files changed, 29 insertions(+), 57 deletions(-) create mode 100644 templates/components/christmas_post.html delete mode 100644 templates/components/timeline_post.html diff --git a/app.py b/app.py index 1c9570b..80e77c5 100644 --- a/app.py +++ b/app.py @@ -116,9 +116,12 @@ def post_detail(post_id): return "Post not found", 404 #get comments comments = get_comments_for_post(post_id) + if post["id"] == 8: + post["template"] = "components/christmas_post.html" + if post["id"] == 10: - post["template"] = "components/timeline_post.html" + post["template"] = "components/timeline.html" post["timeline"] = """