Commit 970311e1 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

added argument to end of image request to change default if nonexistent

parent e08ef69d
# from # modified from
require 'digest/md5' require 'digest/md5'
module Jekyll module Jekyll
module GravatarFilter module GravatarFilter
# Add our new liquid filter. # Add our new liquid filter.
def get_gravatar(input) def get_gravatar(input)
"//{hash(input)}" "//{hash(input)}?d=mm"
end end
private :hash private :hash
...@@ -18,4 +18,4 @@ module Jekyll ...@@ -18,4 +18,4 @@ module Jekyll
end end
end end
Liquid::Template.register_filter(Jekyll::GravatarFilter) Liquid::Template.register_filter(Jekyll::GravatarFilter)
\ No newline at end of file
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