diff --git a/templates/pubs.html b/templates/pubs.html index de7fbeba885c93410ce1e70a21160bd363e65903..79002eeca98b9de0d2c89aa99590d163cc8619dc 100644 --- a/templates/pubs.html +++ b/templates/pubs.html @@ -39,10 +39,12 @@ <div class="card-text"> <h4>{{ count + 1 - loop.index }}) <a href="https://ui.adsabs.harvard.edu/abs/{{ card.bibcode }}/abstract">{{ card.title }}</a></h4> <p> - {% if card.author_count > 1 %} -   {{ card.first_author_norm }} et al., - {% else %} -   {{ card.first_author_norm }}, + {% if card.author_count %} + {% if card.author_count > 1 %} +   {{ card.first_author_norm }} et al., + {% else %} +   {{ card.first_author_norm }}, + {% endif %} {% endif %} <i>{{ card.bibstem }}</i>, {{ card.year }} {% if card.bibstem != "arXiv" %}