Skip to content

Commit

Permalink
add date defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
staeiou committed Sep 20, 2016
1 parent 8cd69f5 commit 768e817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/archive-single.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ <h2 class="archive__item-title" itemprop="headline">
{% endif %}

{% if post.venue and post.date %}
<p>Published in <i>{{ post.venue }}</i>, {{ post.date | date: "%Y" }} </p>
<p>Published in <i>{{ post.venue }}</i>, {{ post.date | default: "1900-01-01" | date: "%Y" }} </p>
{% elsif post.date %}
<p class="page__date"><strong><i class="fa fa-fw fa-calendar" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Published:" }}</strong> <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time></p>
<p class="page__date"><strong><i class="fa fa-fw fa-calendar" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Published:" }}</strong> <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | default: "1900-01-01" | date: "%B %d, %Y" }}</time></p>
{% endif %}

{% if post.excerpt %}
Expand Down

0 comments on commit 768e817

Please sign in to comment.