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

@@ -25,9 +25,6 @@
<tr>
<td>
<strong>{{ post.title }}</strong>
{% if post.isRecent(7) %}
<span class="badge badge-new">Nouveau</span>
{% endif %}
</td>
<td>{{ post.createdAt|date("d/m/Y H:i") }}</td>
<td>{{ post.updatedAt|date("d/m/Y H:i") }}</td>

View File

@@ -9,9 +9,6 @@
<div class="post-meta">
<small>Publié le {{ post.createdAt|date("d/m/Y à H:i") }}</small>
{% if post.isRecent(7) %}
<span class="badge badge-new">Nouveau</span>
{% endif %}
</div>
<p>{{ post.getExcerpt(200) }}</p>

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 %}