{% macro render_blog_post(post, from_index=false) %} {% if from_index == True %}
{% if from_index %}

{{ post.title }}

{% else %}

{{ post.title }}

{% endif %}

{% if bag('translate', post.alt, 'created') %}{{ bag('translate', post.alt, 'created') }}{% else %}Geschrieben von{% endif %} {% if post.twitter_handle %}{{ post.author or post.twitter_handle }}{% else %}{{ post.author }}{% endif %} {% if post.alt == 'en' %}on {{ post.pub_date }}{% else %}am {{ post.pub_date.strftime('%d. %m. %Y') }}{% endif %}

{% else %}

{{ post.title }}

{% if bag('translate', post.alt, 'created') %}{{ bag('translate', post.alt, 'created') }}{% else %}Verfasst von{% endif %} {% if post.twitter_handle %}{{ post.author or post.twitter_handle }}{% else %}{{ post.author }}{% endif %} {% if post.alt == 'en' %}on {{ post.pub_date }}{% else %}am {{ post.pub_date.strftime('%d. %m. %Y') }}{% endif %}

{% endif %}

{{ post.subtitle }}

{{ post.body }} {% if from_index == False %} {{ post.privatebody }} {{ post.galerie }} {% if post.galerie %}
{% for blk in post.galerie.blocks %} {{ blk }} {% endfor %}
{% endif %} {% else %}

{% if bag('translate', post.alt, 'read') %}{{ bag('translate', post.alt, 'read') }}{% else %}Weiter lesen{% endif %}

{{ post.title }} {% endif %}
{% endmacro %}