Skip to content

Commit

Permalink
Add support for github usernames in author lines (ethereum#974)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachnid authored and nicksavers committed Apr 6, 2018
1 parent 547af9d commit 5b37c1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _includes/authorlist.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down

0 comments on commit 5b37c1d

Please sign in to comment.