Avoid displaying 'None'.

This commit is contained in:
Julien Palard 2018-05-16 14:03:43 +02:00
parent 4959d00c9d
commit 995fbf2444
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@
</time>
<p>
<em>
{{ post.summary | safe }}
{{ post.summary | safe if post.summary }}
</em>
</p>
{% if post.image %}
@ -21,7 +21,7 @@
</article>
{% if name == 'emplois' %}
<aside>
<h2>{{ post.company }}</h2>
<h2>{{ post.company or "(Société inconnue)" }}</h2>
<dl>
{% if post.address %}
<dt>Adresse</dt>

View File

@ -18,7 +18,7 @@
{% if post.image %}
<img src="{{ url_for('post_image', path=post.image) }}" alt="{{ post.title }}" />
{% endif %}
{{ post.summary | safe }}
{{ post.summary | safe if post.summary }}
<p><a href="{{ url_for('post', name=name, timestamp=timestamp) }}">Lire la suite…</a></p>
</article>
{% endfor %}