diff --git a/templates/components/post_renderer.html b/templates/components/post_renderer.html index 94c6c6a..7ab0693 100644 --- a/templates/components/post_renderer.html +++ b/templates/components/post_renderer.html @@ -3,9 +3,9 @@ {% if post.template %} {% include post.template %} {% endif %} {% endmacro %} {% macro render_test(post) %}
- {% 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" %} + {% for block in post.content %} {% if block.type == "image" %} {% with + src=url_for('content_image_files', filename=block.src) %} {% include + "components/image.html" %} {% endwith %} {% elif block.type == "text" %}

{{ block.value }}

{% endif %} {% endfor %}