misuzu/templates/news/post.twig

20 lines
746 B
Twig
Raw Permalink Normal View History

2022-09-13 13:14:49 +00:00
{% 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, post_user_colour) }}
2022-09-13 13:14:49 +00:00
{% if comments_info is defined %}
<div class="container">
{{ container_title('<i class="fas fa-comments fa-fw"></i> Comments') }}
{{ comments_section(comments_info, canonical_url) }}
2022-09-13 13:14:49 +00:00
</div>
{% endif %}
{% endblock %}