image template
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
{% macro render_post(post) %}
|
||||
<article class="blog-content">{{ post.content | safe }}</article>
|
||||
{% if post.template %} {% include post.template %} {% endif %} {% endmacro %}
|
||||
{% 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" %}
|
||||
<p>{{ block.value }}</p>
|
||||
{% endif %} {% endfor %}
|
||||
</article>
|
||||
{% endmacro %}
|
||||
|
||||
Reference in New Issue
Block a user