syntax fix

This commit is contained in:
m
2026-03-24 21:44:12 +01:00
parent 6c5649d721
commit 11aac567ec

View File

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