{% extends '@mio/news/master.twig' %} {% from '@mio/_layout/comments.twig' import comments_section %} {% set title = post.post_title ~ ' :: News' %} {% set canonical_url = '/news.php?p=' ~ post.post_id %} {% block news_content %}
{{ post.category_name }} ยป {{ post.post_title }}
{{ post.post_text|parse_text('md')|raw }}
{{ post.username }}
{# TODO: make this work {% if post.updated_at is defined %} {% endif %} #}
{% if comments is defined %}
Comments
{{ comments_section(comments, comments_category, current_user|default(null), comments_perms) }}
{% endif %} {% endblock %}