File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,17 +20,17 @@ layout: default
2020 <p >
2121 by
2222 {% assign author_count = page .authors .size %}
23- {% assign last_index = author_count | minus: 1 %}
23+ {% assign before_last_author = author_count | minus: 1 %}
2424 {% for author_id in page .authors %}
2525 {% assign author = authors [author_id] %}
2626 {{- author .name -}}
2727 {% if author .orcid %}
2828 <a href =" https://orcid.org/{{ author .orcid }}" ><i class =" fa-brands fa-orcid" ></i ></a >
2929 {%- endif -%}
30- {% if forloop .index0 < last_index and author_count > 2 -%}
30+ {% if forloop .index0 < before_last_author and author_count > 2 -%}
3131 ,
3232 {% endif %}
33- {% if forloop .index == last_index and author_count > 1 -%}
33+ {% if forloop .index == before_last_author and author_count > 1 -%}
3434 and
3535 {% endif %}
3636 {% endfor %}
You can’t perform that action at this time.
0 commit comments