This commit is contained in:
decanus 2020-02-20 10:48:25 -05:00
parent 41c4ecceab
commit 710372bc97
No known key found for this signature in database
GPG Key ID: E95B8C69228FF5B4
1 changed files with 13 additions and 0 deletions

13
_includes/authorlist.html Normal file
View File

@ -0,0 +1,13 @@
{%- 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 -%}