SiteWebAstrolabe/src/_includes/layouts/post.njk

21 lines
697 B
Plaintext
Raw Normal View History

2020-06-19 23:47:44 +02:00
{% extends 'layouts/base.njk' %}
{% block content %}
<main id="main-content" tabindex="-1">
2020-07-15 23:05:36 +02:00
<article class="[ post wrapper ]">
<div class="[ post__body ]">
<h1>{{ title }}</h1>
2020-07-15 23:29:29 +02:00
<div class="post-info">
Publié le <strong>{{ date | dateFilter }}</strong>{%if author %} | {{ author }}{% endif %}
2020-07-15 23:29:29 +02:00
</div>
2020-07-15 23:05:36 +02:00
{% if illustration %}
<img class="post-pic" src="{{ illustration }}" alt="illustration de l'article">
{% endif %}
2020-06-19 23:47:44 +02:00
{{ content | safe }}
2020-07-15 23:05:36 +02:00
<a class="return-link" href="/posts">Voir toute l'actualité</a>
2020-06-19 23:47:44 +02:00
</div>
</article>
2020-07-15 23:05:36 +02:00
{% include "partials/components/contact-form.njk" %}
2020-06-19 23:47:44 +02:00
</main>
{% endblock %}