feat: améliore la présentation des articles de presse

pull/1/head
Jalil Arfaoui 2022-09-06 17:39:15 +02:00
parent 0857ca01e9
commit acf00f43a6
2 changed files with 10 additions and 4 deletions

View File

@ -9,7 +9,12 @@ layout: layouts/html.njk
{% include "header.njk" %}
<main>
<h1>{{ title }}</h1>
<h1>
{% if media %}
<img alt="{{ media | mediaName }}" src="{{ media | mediaLogo }}" class="inline max-w-md max-h-12" />
{% endif %}
{{ title }}
</h1>
{{ content | safe }}

View File

@ -6,14 +6,15 @@ layout: layouts/base.njk
<strong><time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time></strong>
{% endif %}
<p>{{ content | safe }}</p>
{% for quote in quotes %}
<blockquote>
<blockquote class="max-w-2xl mx-auto">
« {{ quote | toHTML | safe }} »
</blockquote>
{% endfor %}
<p>{{ content | safe }}</p>
{% if articleImage %}
<img alt="{{ title }}" class="mx-auto mt-8 px-16" src="{{ articleImage }}" />
{% endif %}