syntax fix
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
{% 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" %}
|
||||
{% 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" %}
|
||||
<p>{{ block.value }}</p>
|
||||
{% endif %} {% endfor %}
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user