mirror of https://github.com/status-im/EIPs.git
Add support for github usernames in author lines (#974)
This commit is contained in:
parent
547af9da8c
commit
5b37c1d6c0
|
@ -3,6 +3,9 @@
|
|||
{%- 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 -%}
|
||||
|
|
Loading…
Reference in New Issue