2018-03-21 16:04:37 +00:00
|
|
|
{%- 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>
|
2018-04-06 21:59:24 +00:00
|
|
|
{%- elsif author contains "(@" -%}
|
|
|
|
{%- assign authorparts=author|split:"(@" -%}
|
|
|
|
<a href="https://github.com/{{authorparts[1]|remove:")"}}">{{authorparts[0]|strip}}</a>
|
2018-03-21 16:04:37 +00:00
|
|
|
{%- else -%}
|
|
|
|
{{author}}
|
|
|
|
{%- endif -%}
|
|
|
|
{% if forloop.last == false %}, {% endif %}
|
|
|
|
{%- endfor -%}
|