rfc/_includes/authorlist.html

13 lines
494 B
HTML

{%- assign authors=include.authors|split:"," -%}
{%- for author in authors -%}
{%- if author contains "<" -%}
{%- assign authorparts=author|split:"<" -%}
<a href="mailto:{{authorparts[1]|remove:">"}}">{{authorparts[0]|strip}}</a>
{%- elsif author contains "(@" -%}
{%- assign authorparts=author|split:"(@" -%}
<a href="https://github.com/{{authorparts[1]|remove:")"}}">{{authorparts[0]|strip}}</a>
{%- else -%}
{{author}}
{%- endif -%}
{% if forloop.last == false %}, {% endif %}
{%- endfor -%}