fix: make sure we get an author before rendering

This commit is contained in:
Cory Dransfeldt 2023-05-05 09:35:44 -07:00
parent fe52cc4265
commit beb25c36c6
No known key found for this signature in database

View file

@ -124,7 +124,8 @@ layout: main
{% for article in articles | reverse %} {% for article in articles | reverse %}
<li class="mt-1.5 mb-2"> <li class="mt-1.5 mb-2">
<a href="{{article.content.url}}" title="{{article.content.title | escape}}"> <a href="{{article.content.url}}" title="{{article.content.title | escape}}">
{{ article.content.title | escape }} by {{ article.content.author.name | escape }} {{ article.content.title | escape }}{% if article.content.author.name %}
by {{ article.content.author.name | escape }}{% endif %}
</a> </a>
</li> </li>
{% endfor %} {% endfor %}