{% macro news_preview(post, show_category) %} {% from 'macros.twig' import container_title, avatar %}

{{ post.post.title }}

Posted
{% if post.user is not null %} {% endif %} {% if show_category %} {% endif %}
{{ post.post.firstParagraph|escape|parse_text(2)|raw }}
{% endmacro %} {% macro news_post(post, category, user, user_colour) %} {% from 'macros.twig' import avatar %}

{{ post.title }}

{{ post.body|escape|parse_text(2)|raw }}
{% endmacro %}