46 lines
1.2 KiB
HTML
46 lines
1.2 KiB
HTML
{% extends '_layout.jinja2' %}
|
|
|
|
{% block header %}
|
|
<h1>{{ post.title }}</h1>
|
|
{% endblock header %}
|
|
|
|
{% block main %}
|
|
<article>
|
|
<time pubdate datetime="{{ post.published }}">
|
|
Posté le {{ post.published | parse_iso_datetime('%x') }}
|
|
</time>
|
|
<p>
|
|
<em>
|
|
{{ post.summary | safe if post.summary }}
|
|
</em>
|
|
</p>
|
|
{% if post._image %}
|
|
<img src="{{ url_for('post_image', path=post._image) }}" alt="{{ post.title }}" />
|
|
{% endif %}
|
|
{{ post.content | safe }}
|
|
</article>
|
|
{% if name == 'emplois' %}
|
|
<aside>
|
|
<h2>{{ post.company or "(Société inconnue)" }}</h2>
|
|
<dl>
|
|
{% if post.address %}
|
|
<dt>Adresse</dt>
|
|
<dd>{{ post.address }}</dd>
|
|
{% endif %}
|
|
{% if post.contact %}
|
|
<dt>Personne à contacter</dt>
|
|
<dd>{{ post.contact }}</dd>
|
|
{% endif %}
|
|
{% if post.phone %}
|
|
<dt>Téléphone</dt>
|
|
<dd><a href="tel:{{ post.phone }}">{{ post.phone }}</a></dd>
|
|
{% endif %}
|
|
{% if post.email %}
|
|
<dt>Adresse e-mail</dt>
|
|
<dd><a href="mailto:{{ post.email }}">{{ post.email }}</a></dd>
|
|
{% endif %}
|
|
</dl>
|
|
</aside>
|
|
{% endif %}
|
|
{% endblock main %}
|