13 lines
534 B
HTML
13 lines
534 B
HTML
{% macro render_post(post) %}
|
|
<article class="blog-content">{{ post.content | safe }}</article>
|
|
{% 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" %} {% 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>
|
|
{% endmacro %}
|