Cleaned
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
29
views/pages/post_detail.twig
Normal file
29
views/pages/post_detail.twig
Normal 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 %}
|
||||
Reference in New Issue
Block a user