From fea4b7c550ade963196dbaaa69d17122ca01a950 Mon Sep 17 00:00:00 2001 From: Thomas Kahle Date: Thu, 3 Apr 2025 16:34:21 +0200 Subject: [PATCH] Fix "comma and and" before last author in publication list (#3107) --- _layouts/bib.liquid | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/_layouts/bib.liquid b/_layouts/bib.liquid index f45fc1d..1e2d0e0 100644 --- a/_layouts/bib.liquid +++ b/_layouts/bib.liquid @@ -74,13 +74,15 @@ {% if coauthor.firstname contains author.first %} {%- assign coauthor_url = coauthor.url -%} {% break %} - {% endif %} + {%- endif -%} {% endfor %} {%- endif -%} {%- if forloop.length > 1 -%} - {% if forloop.first == false %}, {% endif %} - {%- if forloop.last and author_array_limit == author_array_size %}and {% endif -%} + {% if forloop.first == false -%} + {%- if forloop.length > 2 %}, {% elsif forloop.length == 2 %} {% endif %} + {%- endif %} + {%- if forloop.last and author_array_limit == author_array_size %}and {% endif -%} {% endif %} {%- if author_is_self -%}