{## This file contains a Jinja2 front-matter template that adds version and authorship information. Changing the Jinja2 templates in this file may cause incompatibility with Manubot updates. Pandoc automatically inserts title from metadata.yaml, so it is not included in this template. ##}
{## Uncomment & edit the following line to reference to a preprinted or published version of the manuscript. A DOI-citable version of this manuscript is available at https://doi.org/DOI_HERE. ##}
{## Template to insert build date and source ##} This manuscript {% if manubot.ci_source is defined and manubot.ci_source.provider == "appveyor" -%} (permalink) {% elif manubot.html_url_versioned is defined -%} (permalink) {% endif -%} was automatically generated {% if manubot.ci_source is defined -%} from {{manubot.ci_source.repo_slug}}@{{manubot.ci_source.commit | truncate(length=7, end='', leeway=0)}} {% endif -%} on {{manubot.generated_date_long}}.
{% if manubot.date_long != manubot.generated_date_long -%} Published: {{manubot.date_long}} {% endif %}
{## Template for listing authors ##} {% set affiliationCounter = namespace(value=0) %} {% set affiliationMap = namespace(value=[]) %} {% for author in manubot.authors %} {{author.name}} {%- if author.orcid is defined and author.orcid is not none -%} {.inline_icon width=16 height=16} {%- endif -%}
{%- 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.append(affiliation) %} {%- endif -%} {{affiliationMap.value.index(affiliation) + 1}} {{- "," if not loop.last -}} {%- endfor -%} ^ {%- endif -%}
{%- if author.corresponding is defined and author.corresponding == true %}*{%- endif -%}
{{ ", " if not loop.last else "." }} {%- endfor %}
{% for affiliation in affiliationMap.value %} ^{{loop.index}}^ {{affiliation}} {% endfor %}
::: {#correspondence} {% if manubot.authors|map(attribute='corresponding')|select|max -%} * Corresponding author {% for author in manubot.authors|selectattr("corresponding") -%} E-mail: {{ author.email }} ({{ author.initials }}) {{ ", " if not loop.last else "" }} {% endfor %} {% endif %} :::