Previous version made GPDR-friendly
This commit is contained in:
20
src/_includes/layouts/post.njk
Normal file
20
src/_includes/layouts/post.njk
Normal file
@@ -0,0 +1,20 @@
|
||||
{% extends 'layouts/base.njk' %}
|
||||
|
||||
{% block content %}
|
||||
<main id="main-content" tabindex="-1">
|
||||
<article class="[ post wrapper ]">
|
||||
<div class="[ post__body ]">
|
||||
<h1>{{ title }}</h1>
|
||||
<div class="post-info">
|
||||
Publié le <strong>{{ date | dateFilter }}</strong>{%if author %} | {{ author }}{% endif %}
|
||||
</div>
|
||||
{% if illustration %}
|
||||
<img class="post-pic" src="{{ illustration }}" alt="illustration de l'article">
|
||||
{% endif %}
|
||||
{{ content | safe }}
|
||||
<a class="return-link" href="/posts/">Voir toute l'actualité</a>
|
||||
</div>
|
||||
</article>
|
||||
{% include "partials/components/contact-form.njk" %}
|
||||
</main>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user