Skip to content

Commit 0c2960b

Browse files
committed
Handle missing author field in event list template
1 parent 2c0bc95 commit 0c2960b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_layouts/event-list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ <h1>{{title}}</h1>
77
<h2><a href="{{ page }}.html">
88
{{ page.title }}
99
</a></h2>
10-
<small>{{page.author}} {{page.date}}</small>
10+
<small>{% if page.author %}{{page.author | join(", ")}} {% endif %}{{page.date}}</small>
1111
</article>
1212
{% endfor %}
1313
</section>

0 commit comments

Comments
 (0)