misuzu/templates/news/post.twig

17 lines
649 B
Twig
Raw Normal View History

2018-08-15 03:12:58 +02:00
{% extends 'news/master.twig' %}
2018-10-22 21:53:21 +02:00
{% from 'macros.twig' import container_title %}
2018-12-11 02:20:18 +01:00
{% from 'news/macros.twig' import news_post %}
2018-04-14 04:58:53 +02:00
{% 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}) %}
2018-04-14 04:58:53 +02:00
{% block content %}
{{ news_post(post_info, post_category_info, post_user_info, post_user_colour) }}
2018-04-16 02:33:54 +02:00
<div class="container">
{{ container_title('<i class="fas fa-comments fa-fw"></i> Comments') }}
<div class="js-comments" data-category="{{ post_info.commentsCategoryName }}"></div>
</div>
2018-04-14 04:58:53 +02:00
{% endblock %}