Skip to content

Commit 1dd9162

Browse files
committed
fix bug w/ blog posts added by previous teaching bugfix
1 parent 2e86aa6 commit 1dd9162

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_includes/archive-single.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ <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 page.venue and page.date %}
43+
{% elsif post.venue and post.date %}
4444
<p>Published in <i>{{ post.venue }}</i>, {{ post.date | default: "1900-01-01" | date: "%Y" }} </p>
45-
{% elsif page.date %}
45+
{% 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>
4747
{% endif %}
4848

0 commit comments

Comments
 (0)