From 324794a9e8d60c9e187dd8c24f9cae076e933142 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Thu, 1 Jan 2026 22:11:02 +0100 Subject: new home feed --- templates/home.html | 13 ++++++++++++- templates/poetry.html | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/home.html b/templates/home.html index d8efc3e..95e614c 100644 --- a/templates/home.html +++ b/templates/home.html @@ -28,7 +28,18 @@ {% block content %} -
+{% for post in feed %} +{% match post %} +{% when HomeFeedItem::Blogpost(blogpost) %} +{% include "blogpost-panel.html" %} +{% when HomeFeedItem::Poem(poem) %} +{% include "poem-panel.html" %} +{% endmatch %} +{% endfor %} + + {% endblock content %} diff --git a/templates/poetry.html b/templates/poetry.html index 8c51cff..f12a5d9 100644 --- a/templates/poetry.html +++ b/templates/poetry.html @@ -10,4 +10,4 @@ {% endfor %}
-{% endblock content %} \ No newline at end of file +{% endblock content %} -- cgit