image template

This commit is contained in:
m
2026-03-24 21:27:59 +01:00
parent 80c66c1802
commit 664900cbd1
4 changed files with 20 additions and 6 deletions

View File

@@ -1,3 +1,12 @@
{% macro render_post(post) %}
<article class="blog-content">{{ post.content | safe }}</article>
{% if post.template %} {% include post.template %} {% endif %} {% endmacro %}
{% if post.template %} {% include post.template %} {% endif %} {% endmacro %} {%
macro render_test(post) %}
<article class="blog-content">
{% for block in post.content %} {% if block.type == "image" %} {% include
"components/image.html" with src=url_for('content_image_files',
filename=block.src) %} {% elif block.type == "text" %}
<p>{{ block.value }}</p>
{% endif %} {% endfor %}
</article>
{% endmacro %}

View File

@@ -1,3 +0,0 @@
<h1 class="text-3xl font-bold mb-8">Project Timeline</h1>
{% include "components/timeline.html" %}