Don't render 'By' if no authors

This commit is contained in:
Sam Bull 2026-02-19 22:58:11 +00:00 committed by Justin Mayer
commit 4444f99c17

View file

@ -11,11 +11,13 @@
<section>{{ article.summary }}</section>
<footer>
<p>Published: <time datetime="{{ article.date.isoformat() }}"> {{ article.locale_date }} </time></p>
{%- if article.authors %}
<address>By
{% for author in article.authors %}
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
{% endfor %}
</address>
{%- endif %}
</footer>
</article>
{% endfor %}