This commit is contained in:
julien
2026-03-09 15:14:57 +01:00
parent 50831ea83a
commit 4d678f1211
8 changed files with 86 additions and 30 deletions

View File

@@ -0,0 +1,29 @@
{% extends "layout.twig" %}
{% block title %}{{ post.title }} Mon Blog{% endblock %}
{% block content %}
<article class="post">
<h1>{{ post.title }}</h1>
<div class="post-meta">
<small>Publié le {{ post.createdAt|date("d/m/Y à H:i") }}</small>
</div>
{% if post.updatedAt != post.createdAt %}
<div class="post-updated">
<small><em>Mis à jour le {{ post.updatedAt|date("d/m/Y à H:i") }}</em></small>
</div>
{% endif %}
<div class="post-content">
{{ post.content|raw }}
</div>
<hr>
<p>
<a href="/">← Retour aux articles</a>
</p>
</article>
{% endblock %}