Add gravatar support

This commit is contained in:
Taras Matsyk 2018-11-22 22:37:00 +02:00
parent d3780e0a47
commit 6b1f227642
No known key found for this signature in database
GPG key ID: 8DD284C92A23F12E

View file

@ -12,6 +12,11 @@
<img src="{{$authorImage}}" alt="Author Image" class="img--circle img--headshot element--center">
</div>
{{ end }}
{{ with .Site.Params.social.email}}
<div class="author-image">
<img src="https://www.gravatar.com/avatar/{{md5 .}}?s=240&d=mp" class="img--circle img--headshot element--center" alt="gravatar">
</div>
{{ end }}
<p class="site__description">
{{ with .Site.Params.description }} {{.}} {{end}}
</p>