misuzu/templates/news/post.twig

20 lines
692 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) }}
{% 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 %}