Skip to content

Commit 5b00a04

Browse files
committed
Fix variable name
1 parent 34111eb commit 5b00a04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_layouts/publication.liquid

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 %}

0 commit comments

Comments
 (0)