feat: améliore la présentation des articles de presse
parent
0857ca01e9
commit
acf00f43a6
|
@ -9,7 +9,12 @@ layout: layouts/html.njk
|
||||||
{% include "header.njk" %}
|
{% include "header.njk" %}
|
||||||
|
|
||||||
<main>
|
<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 }}
|
{{ content | safe }}
|
||||||
|
|
||||||
|
|
|
@ -6,14 +6,15 @@ layout: layouts/base.njk
|
||||||
<strong><time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time></strong>
|
<strong><time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time></strong>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<p>{{ content | safe }}</p>
|
||||||
|
|
||||||
|
|
||||||
{% for quote in quotes %}
|
{% for quote in quotes %}
|
||||||
<blockquote>
|
<blockquote class="max-w-2xl mx-auto">
|
||||||
« {{ quote | toHTML | safe }} »
|
« {{ quote | toHTML | safe }} »
|
||||||
</blockquote>
|
</blockquote>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<p>{{ content | safe }}</p>
|
|
||||||
|
|
||||||
{% if articleImage %}
|
{% if articleImage %}
|
||||||
<img alt="{{ title }}" class="mx-auto mt-8 px-16" src="{{ articleImage }}" />
|
<img alt="{{ title }}" class="mx-auto mt-8 px-16" src="{{ articleImage }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue