{% macro post(post, type) %} {% if not post.draft or logged_in %}
{% if type != 'index' and post.draft %}

this post is a draft

{% endif %}
{{ post.title }}
{% if logged_in %} {% endif %}
{% if type != "index" %}
{{ post.html | safe }}
{% endif %}
{% endif %} {% endmacro %} {% macro form(post=false, action) %}
Preview
{% endmacro %}