Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonathan Bell
srctweb
Commits
970311e1
Commit
970311e1
authored
Mar 31, 2018
by
Daniel W Bond
Browse files
added argument to end of image request to change default if nonexistent
parent
e08ef69d
Changes
1
Hide whitespace changes
Inline
Side-by-side
srctweb/_plugins/gravatar.rb
View file @
970311e1
# 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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment