Skip to content

Commit

Permalink
authors formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
BrapiCoordinatorSelby committed Sep 11, 2024
1 parent 824bf86 commit 9dfbe3f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions content/00.front-matter.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ Published: {{manubot.date_long}}
{% set affiliationMap = namespace(value=[]) %}
{% for author in manubot.authors %}
**{{author.name}}**
{%- if author.corresponding is defined and author.corresponding == true %}\*{% endif %}
{%- if author.orcid is defined and author.orcid is not none -%}
[![ORCID icon](images/orcid.svg){.inline_icon width=16 height=16}](https://orcid.org/{{author.orcid}})
{%- endif -%}
Expand All @@ -53,6 +52,8 @@ Published: {{manubot.date_long}}
^
{%- endif -%}

{%- if author.corresponding is defined and author.corresponding == true %}\*{% endif %}

{{ ", " if not loop.last else "." }}
{%- endfor %}

Expand All @@ -61,10 +62,10 @@ Published: {{manubot.date_long}}
{% endfor %}

::: {#correspondence}
✉ — Corresponding author email:
{% if manubot.authors|map(attribute='corresponding')|select|max -%}
\* Corresponding author
{% for author in manubot.authors|selectattr("corresponding") -%}
{{ author.name }} \<{{ author.email }}\>{{ ", " if not loop.last else "." }}
E-mail: {{ author.email }} ({{ author.initials }}) {{ ", " if not loop.last else "" }}
{% endfor %}
{% endif %}
:::

0 comments on commit 9dfbe3f

Please sign in to comment.