misuzu/templates/news/post.twig

20 lines
713 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 %}
2023-07-15 17:02:46 +00:00
{{ news_post(post_info, post_category_info, post_user_info) }}
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') }}
2023-07-15 23:58:17 +00:00
{{ comments_section(comments_info) }}
2022-09-13 13:14:49 +00:00
</div>
{% endif %}
{% endblock %}