17 lines
557 B
Twig
17 lines
557 B
Twig
{% extends 'master.twig' %}
|
|
{% from 'macros.twig' import news_post %}
|
|
|
|
{% set title = post.title %}
|
|
|
|
{% set commentsCategory = 'news-' ~ post.category.id ~ '-' ~ post.id %}
|
|
{% set comments = post.comments %}
|
|
|
|
{% block content %}
|
|
<div class="content news">
|
|
<div class="content__header">{{ post.title }}</div>
|
|
{{ news_post(post) }}
|
|
<a href="{{ route('news.category', post.category.id) }}" class="input__button"><span class="fa fa-backward"></span> Back</a>
|
|
{% include 'elements/comments.twig' %}
|
|
</div>
|
|
{% endblock %}
|
|
|