templates: Drop avatar

This commit is contained in:
Will Binns 2017-03-07 10:12:56 -06:00
parent 77fd49b107
commit 9b93684599
No known key found for this signature in database
GPG key ID: 302EBEAEEB74A404
3 changed files with 0 additions and 6 deletions

View file

@ -58,10 +58,6 @@ module Jekyll
x = {}
x['name'] = name
x['contributions'] = c['contributions']
# Set avatar_url when available
if c.has_key?('avatar_url') and c['avatar_url'].is_a?(String) and /^https:\/\/avatars1\.githubusercontent\.com\/u\/[0-9]{1,10}\?v=[0-9]{1,2}$/.match(c['avatar_url'])
x['avatar_url'] = c['avatar_url'] + '&size=16'
end
# Set login when available
if c.has_key?('login') and c['login'].is_a?(String) and /^[A-Za-z0-9\-]{1,150}$/.match(c['login'])
x['login'] = c['login']