|
@@ -8,12 +8,12 @@
|
|
|
<section id="section-articles">
|
|
|
{% for article in articles %}
|
|
|
<article class="article-preview">
|
|
|
- <h2><a href="{{ path('app_view', {'id': article.id}) }}">{{ article.title}}</a><span class="article-by">{{ article.publicationDate | date('d-m-Y')}} {{ article.author }}</span></h2>
|
|
|
+ <h1><a href="{{ path('app_view', {'slug': article.slug}) }}">{{ article.title}}</a><span class="article-by">{{ article.publicationDate | date('d-m-Y')}} {{ article.author }}</span></h1>
|
|
|
<div class="contenu">
|
|
|
{{ article.content | markdown }}
|
|
|
</div>
|
|
|
</article>
|
|
|
- <a href="{{ path('app_view', {'id': article.id}) }}">Voir l'article</a>
|
|
|
+ <a href="{{ path('app_view', {'slug': article.slug}) }}">Voir l'article</a>
|
|
|
{% if is_granted('edit', article) %}
|
|
|
<a class="btn btn-blue" href="{{ path('app_article_edit', {'id': article.id}) }}">Modifier cet article</a>
|
|
|
{% endif %}
|