Skip to content

Commit

Permalink
Merge pull request academicpages#24 from academicpages/fix-teaching
Browse files Browse the repository at this point in the history
fix bug w/ blog post titles in /year-archive
  • Loading branch information
staeiou authored Jul 21, 2017
2 parents a3deabf + 127ae68 commit 3ebe977
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 @@ -40,9 +40,9 @@ <h2 class="archive__item-title" itemprop="headline">

{% if post.collection == 'teaching' %}
<p> {{ post.type }}, <i>{{ post.venue }}</i>, {{ post.date | default: "1900-01-01" | date: "%Y" }} </p>
{% elsif page.venue and page.date %}
{% elsif post.venue and post.date %}
<p>Published in <i>{{ post.venue }}</i>, {{ post.date | default: "1900-01-01" | date: "%Y" }} </p>
{% elsif page.date %}
{% 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="{{ post.date | default: "1900-01-01" | date_to_xmlschema }}">{{ post.date | default: "1900-01-01" | date: "%B %d, %Y" }}</time></p>
{% endif %}

Expand Down

0 comments on commit 3ebe977

Please # to comment.