19 lines
728 B
Twig
19 lines
728 B
Twig
{% extends 'news/master.twig' %}
|
|
{% from 'macros.twig' import container_title %}
|
|
{% from '_layout/comments.twig' import comments_section %}
|
|
{% from 'news/macros.twig' import news_post %}
|
|
|
|
{% set title = post_info.title ~ ' :: News' %}
|
|
{% set canonical_url = url('news-post', {'post': post_info.id}) %}
|
|
{% set manage_link = url('manage-news-post', {'post': post_info.id}) %}
|
|
|
|
{% block content %}
|
|
{{ news_post(post_info, post_category_info, post_user_info) }}
|
|
|
|
{% if comments_info is defined %}
|
|
<div class="container">
|
|
{{ container_title('<i class="fas fa-comments fa-fw"></i> Comments') }}
|
|
{{ comments_section(comments_info, comments_user) }}
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|