fix
This commit is contained in:
@@ -3,11 +3,10 @@
|
|||||||
{% if post.content is iterable and post.content is not string %} {# content is
|
{% if post.content is iterable and post.content is not string %} {# content is
|
||||||
[] → render blocks #} {% for block in post.content %} {% if block.type ==
|
[] → render blocks #} {% for block in post.content %} {% if block.type ==
|
||||||
"image" %} {% with src=url_for('content_image_files', filename=block.src) %}
|
"image" %} {% with src=url_for('content_image_files', filename=block.src) %}
|
||||||
{% include "components/image.html" %} {% endwith %} {% elif block.type ==
|
{% include "components/image.html" %} {% endwith %} {% endif %} {% elif
|
||||||
"text" %} {{ block.value | safe }} {% endif %}{% elif block.type == "code" %}
|
block.type == "text" %} {{ block.value | safe }} {% endif %} {% elif
|
||||||
{% with value=block.src %} {% include "components/code.html" %} {% endwith %}
|
block.type == "code" %} {% with value=block.src %} {% include
|
||||||
{% elif block.type == "text" %} {{ block.value | safe }} {% endif %} {% endfor
|
"components/code.html" %} {% endwith %} {% endif %} {% endfor %} {% else %} {#
|
||||||
%} {% else %} {# content is """...""" → render HTML #} {{ post.content | safe
|
content is """...""" → render HTML #} {{ post.content | safe }} {% endif %}
|
||||||
}} {% endif %}
|
|
||||||
</article>
|
</article>
|
||||||
{% if post.template %} {% include post.template %} {% endif %} {% endmacro %}
|
{% if post.template %} {% include post.template %} {% endif %} {% endmacro %}
|
||||||
|
|||||||
Reference in New Issue
Block a user