Commit 3d8cc37c authored by David Haynes's avatar David Haynes 🙆

Merge branch '57-people-page' into 'master'

Resolve "fixes to the people page"

Closes #57

See merge request srctweb!54
parents b8900bb7 970311e1
......@@ -48,7 +48,7 @@ permalink: /people/
</thead>
<tbody>
{% for member in site.data.people %}
{% if member.alum == false %}
{% if member.alum == false and member.exec.position != 'Faculty Advisor' %}
<tr>
<td><img class="member-image" src="{{ member.email | get_gravatar }}" alt="gravatar image"></td>
<td class="align-middle">{{ member.name }}</td>
......
# from https://tlattimore.com/blog/using-gravatar-in-jekyll/
# modified from https://tlattimore.com/blog/using-gravatar-in-jekyll/
require 'digest/md5'
module Jekyll
module GravatarFilter
# Add our new liquid filter.
def get_gravatar(input)
"//www.gravatar.com/avatar/#{hash(input)}"
"//www.gravatar.com/avatar/#{hash(input)}?d=mm"
end
private :hash
......@@ -18,4 +18,4 @@ module Jekyll
end
end
Liquid::Template.register_filter(Jekyll::GravatarFilter)
\ No newline at end of file
Liquid::Template.register_filter(Jekyll::GravatarFilter)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment