Skip to content

Commit 377f14c

Browse files
committed
fix bug in displaying publication info
1 parent 1dd9162 commit 377f14c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/archive-single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h2 class="archive__item-title" itemprop="headline">
4040

4141
{% if post.collection == 'teaching' %}
4242
<p> {{ post.type }}, <i>{{ post.venue }}</i>, {{ post.date | default: "1900-01-01" | date: "%Y" }} </p>
43-
{% elsif post.venue and post.date %}
43+
{% elsif post.collection == 'publication' %}
4444
<p>Published in <i>{{ post.venue }}</i>, {{ post.date | default: "1900-01-01" | date: "%Y" }} </p>
4545
{% elsif post.date %}
4646
<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>

0 commit comments

Comments
 (0)