Skip to content

Commit

Permalink
formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BrapiCoordinatorSelby committed Sep 5, 2024
1 parent 32c0a32 commit c928ec4
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions content/00.front-matter.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,32 @@ Published: {{manubot.date_long}}
## Authors

{## Template for listing authors ##}
{% set affiliationCounter = namespace(value=0) %}
{% set affiliationMap = namespace(value={}) %}
{% for author in manubot.authors %}
**{{author.name}}**
{% if author.corresponding is defined and author.corresponding == true -%}^[](#correspondence)^{%- endif -%}
{%- if author.orcid is defined and author.orcid is not none %}
**{{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 %}
{% endfor %}
{%- endif -%}

<br>
<br>
{%- if author.affiliations is defined and author.affiliations|length -%}
^
{%- for affiliation in author.affiliations -%}
{%- if affiliation not in affiliationMap.value %}
{%- set affiliationCounter.value = affiliationCounter.value + 1 %}
{%- set x=affiliationMap.value .__setitem__(affiliation, affiliationCounter.value) %}
{%- endif -%}
{{affiliationMap.value[affiliation]}}{{ ", " if not loop.last}}
{%- endfor -%}
^
{%- endif -%}

{% for author in manubot.authors %}
{%- if author.affiliations is defined and author.affiliations|length %}
{% for affiliation in author.affiliations %}
{{affiliation}}
<br>
{% endfor %}
{%- endif %}
{{ ", " if not loop.last else "." }}
{%- endfor %}

{% for affiliation in affiliationMap.value -%}
^{{loop.index}}^ {{affiliation}}
{% endfor %}

::: {#correspondence}
Expand Down

0 comments on commit c928ec4

Please sign in to comment.