From 9b9368459956ef5cc51e128e582fa0b218b977f1 Mon Sep 17 00:00:00 2001 From: Will Binns Date: Tue, 7 Mar 2017 10:12:56 -0600 Subject: [PATCH] templates: Drop avatar --- _plugins/contributors.rb | 4 ---- _templates/about-us.html | 1 - _templates/development.html | 1 - 3 files changed, 6 deletions(-) diff --git a/_plugins/contributors.rb b/_plugins/contributors.rb index ebd45d82..e19e9d87 100644 --- a/_plugins/contributors.rb +++ b/_plugins/contributors.rb @@ -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'] diff --git a/_templates/about-us.html b/_templates/about-us.html index 8666dac1..1127c731 100644 --- a/_templates/about-us.html +++ b/_templates/about-us.html @@ -93,7 +93,6 @@ id: about-us
{% for c in site.sitecontributors %}
-
{% if c.avatar_url %}icon{% else %}icon{% endif %}
{{ c.name | htmlescape }}
({{ c.contributions }})
diff --git a/_templates/development.html b/_templates/development.html index 57a23cee..3688f756 100755 --- a/_templates/development.html +++ b/_templates/development.html @@ -97,7 +97,6 @@ improvement in mind? Here are a few ideas:
{% for c in site.corecontributors %}
-
{% if c.avatar_url %}icon{% else %}icon{% endif %}
{{ c.name | htmlescape }}
({{ c.contributions }})