Wrapped if statement around post.date

This commit is contained in:
David Whiting 2017-04-22 12:01:45 +01:00
parent 0d6e5bcddd
commit b05018909f

View file

@ -24,7 +24,7 @@
<h1>{{ post.title }}</h1>
</header>
{% if post.image %}<span class="image main"><img src="{{ site.baseurl }}/{{ post.image }}" alt="" /></span>{% endif %}
<p>{{ post.date }}</p>
{% if post.date %}<p>{{ post.date }}</p>{% endif %}
<p>{{ post.content }}</p>
{% endfor %}
</div>