Fix "comma and and" before last author in publication list (#3107)

This commit is contained in:
Thomas Kahle 2025-04-03 16:34:21 +02:00 committed by GitHub
parent f68e88c5ef
commit fea4b7c550
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,13 +74,15 @@
{% if coauthor.firstname contains author.first %} {% if coauthor.firstname contains author.first %}
{%- assign coauthor_url = coauthor.url -%} {%- assign coauthor_url = coauthor.url -%}
{% break %} {% break %}
{% endif %} {%- endif -%}
{% endfor %} {% endfor %}
{%- endif -%} {%- endif -%}
{%- if forloop.length > 1 -%} {%- if forloop.length > 1 -%}
{% if forloop.first == false %}, {% endif %} {% if forloop.first == false -%}
{%- if forloop.last and author_array_limit == author_array_size %}and {% endif -%} {%- if forloop.length > 2 %}, {% elsif forloop.length == 2 %} {% endif %}
{%- endif %}
{%- if forloop.last and author_array_limit == author_array_size %}and {% endif -%}
{% endif %} {% endif %}
{%- if author_is_self -%} {%- if author_is_self -%}
<em> <em>