Skip to content

Commit 64a6fd4

Browse files
authored
Merge pull request #23 from academicpages/fix-teaching
fix bug w/ teaching info not appearing in collection page
2 parents 7bf69d7 + 2e86aa6 commit 64a6fd4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_includes/archive-single.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ <h2 class="archive__item-title" itemprop="headline">
3838
<p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i> {% include read-time.html %}</p>
3939
{% endif %}
4040

41-
{% if page.collection == 'teaching' %}
42-
<p> {{ page.type }}, <i>{{ page.venue }}</i>, {{ page.date | default: "1900-01-01" | date: "%Y" }} </p>
41+
{% if post.collection == 'teaching' %}
42+
<p> {{ post.type }}, <i>{{ post.venue }}</i>, {{ post.date | default: "1900-01-01" | date: "%Y" }} </p>
4343
{% elsif page.venue and page.date %}
44-
<p>Published in <i>{{ page.venue }}</i>, {{ page.date | default: "1900-01-01" | date: "%Y" }} </p>
44+
<p>Published in <i>{{ post.venue }}</i>, {{ post.date | default: "1900-01-01" | date: "%Y" }} </p>
4545
{% elsif page.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 %}

0 commit comments

Comments
 (0)