{# cff - title #}
{{ title }}
{# cff - authors #}
{%- for author in authors %} {{+ author['given-names'] }} {{ author['family-names'] -}}
{{ unique_affiliations.index(author.affiliation) + 1 }}
{%- if author.orcid is defined -%}
{%- endif %} {%- if not loop.last %}, {% endif %} {%- endfor %}
{% for affiliate in unique_affiliations -%}
{{ unique_affiliations.index(affiliate) + 1 }}
: {{ affiliate }} {% endfor -%}
{# cff - keywords #} {%- if keywords is defined -%}
Keywords:
{%- for keyword in keywords -%}
{{ keyword }}
{%- endfor %}
{% endif %} {#cff - identifiers #} {%- if identifiers is defined %}
{%- if repository is defined -%} {%- if repository.startswith('https://github.com') -%}
{%- elif repository.startswith('https://gitlab.com') -%}
{%- endif %}
Repository
{%- endif %} {%- for identifier in identifiers -%} {%- if identifier['type'] == 'swh' -%} {%- if repository is defined %}
{% else -%}
{%- endif %} {%- elif identifier['type'] == 'doi' %}
{%- endif %} {%- endfor %} {%- endif %}
{# cff - licence #} {%- if license is defined %}
License
: {{ license }}
{%- endif %} {# cff - abstract #} {%- if abstract is defined %}
Abstract
: {{ abstract }}
{%- endif %} {%- if references is defined %}
References
{% for reference in references %}
{%- if reference.type == 'article' %} 📖 {% elif reference.type == 'software' %} 💻 {%- endif %}
{{ reference.title }}
,
{%- for author in reference['authors'] %} {{+ author['given-names'] }} {{ author['family-names'] -}} {%- if author.orcid is defined -%}
{%- endif %} {%- if not loop.last %}, {% endif %} {%- endfor %}
{% if reference.year %}
{{ reference.year }}
, {% endif %}
{{ reference.doi }}
{% endfor %}
{%- endif %}