This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/resources/views/yuuno/news/post.twig

17 lines
464 B
Twig

{% extends 'master.twig' %}
{% from 'macros.twig' import news_post %}
{% set title = post.title %}
{% set commentsCategory = 'news-' ~ post.category ~ '-' ~ post.id %}
{% set comments = post.comments %}
{% block content %}
<div class="content news">
<div class="content__header">{{ post.title }}</div>
{{ news_post(post.id, post.text, post.created, post.userData) }}
{% include 'elements/comments.twig' %}
</div>
{% endblock %}