misuzu/templates/news/post.twig

20 lines
721 B
Twig
Raw Normal View History

2018-08-15 01:12:58 +00:00
{% extends 'news/master.twig' %}
2018-10-22 19:53:21 +00:00
{% from 'macros.twig' import container_title %}
2018-08-15 01:12:58 +00:00
{% from '_layout/comments.twig' import comments_section %}
2018-12-11 01:20:18 +00:00
{% from 'news/macros.twig' import news_post %}
2018-04-14 02:58:53 +00:00
{% set title = post.post_title ~ ' :: News' %}
{% set canonical_url = url('news-post', {'post': post.post_id}) %}
2018-10-10 12:25:18 +00:00
{% set manage_link = '/manage/news.php?v=post&p=' ~ post.post_id %}
2018-04-14 02:58:53 +00:00
{% block content %}
2018-12-11 01:20:18 +00:00
{{ news_post(post) }}
2018-04-16 00:33:54 +00:00
{% if comments is defined %}
<div class="container">
{{ container_title('<i class="fas fa-comments fa-fw"></i> Comments') }}
{{ comments_section(comments, comments_category, current_user|default(null), comments_perms) }}
2018-04-16 00:33:54 +00:00
</div>
{% endif %}
2018-04-14 02:58:53 +00:00
{% endblock %}