syntax fix
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user