templates/post/includes/_post.html.twig line 1
<article>
<h3 class="display-4">
{% if app.current_route != 'cms_post_show' %}
<a href="{{ path('cms_post_show', {'slug': post.slug|lower}) }}" class="nav-link">
{% endif %}
{{ post.title }}
{% if app.current_route != 'cms_post_show' %}
</a>
{% endif %}
</h3>
<div class="text-muted">
<small>{{ 'Par'|trans }} {{ post.createdBy.email }} {{ 'Le '|trans }} {{ post.createdAt|date('d F Y - H:i') }}</small>
<div class="d-flex justify-content-between">
<p><small>{{ 'Catégorie'|trans }} : <a href="{{ path('cms_post_index', {'type': 'category', 'slug': post.category.slug}) }}">{{ post.category.name }}</a></small></p>
<p><small>{{ 'Tags'|trans }}
: {{ post.tags|map(tag => "<a href=" ~ path('cms_post_index', {'type': 'tags', 'slug': tag.slug}) ~ ">#{tag.name}</a>")|join(', ')|default('Pas de tags')|raw }}</small>
</p>
</div>
</div>
<hr>
<div>
{{ post.content|raw }}
</div>
<hr>
{% if is_granted('comments_allowed') or post.comments.count > 0 %}
<aside id="comments_stream">
{{ render(path('cms_comment_show_for_post', {post: post.id})) }}
</aside>
{% endif %}
</article>