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
1 changed files with 5 additions and 0 deletions

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>