diff options
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html')
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html b/themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html index 7151ee5..a463086 100644 --- a/themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html +++ b/themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html @@ -4,7 +4,7 @@ {{- $class := .Get "class" | default "w-32 h-32 rounded-full" -}} {{- if $email -}} - {{- $hash := md5 (trim (strings.ToLower $email)) -}} + {{- $hash := md5 (strings.TrimSpace (strings.ToLower $email)) -}} {{- $gravatarURL := printf "https://www.gravatar.com/avatar/%s?s=%s&d=identicon" $hash $size -}} <img src="{{ $gravatarURL }}" |
