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']

View file

@ -93,7 +93,6 @@ id: about-us
<div class="contributors">
{% for c in site.sitecontributors %}
<div>
<div>{% if c.avatar_url %}<img src="{{c.avatar_url}}" alt="icon" />{% else %}<img alt="icon" />{% endif %}</div>
<div><a{% if c.login %} href="https://github.com/{{c.login}}"{% endif %}>{{ c.name | htmlescape }}</a></div>
<div>({{ c.contributions }})</div>
</div>

View file

@ -97,7 +97,6 @@ improvement in mind? Here are a few ideas:
<div class="contributors">
{% for c in site.corecontributors %}
<div>
<div>{% if c.avatar_url %}<img src="{{c.avatar_url}}" alt="icon" />{% else %}<img alt="icon" />{% endif %}</div>
<div><a{% if c.login %} href="https://github.com/{{c.login}}"{% endif %}>{{ c.name | htmlescape }}</a></div>
<div>({{ c.contributions }})</div>
</div>