Serve avatar locally rather than through Libravatar, it'll perform better and doesn't require the image's size to be messed with

This commit is contained in:
Danielle McLean 2017-10-09 23:34:56 +11:00
parent 20470aa852
commit c517baac1c
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
6 changed files with 3 additions and 11 deletions

View file

@ -2,8 +2,7 @@
$maybe route <- mcurrentRoute
<a .u-uid.u-url itemprop="url" href=@{route} hidden>
$maybe avatar <- maybeAvatar
<img .card-img-top.u-photo itemprop="image" src=#{avatar} alt="Avatar for #{userFullName user}">
<img .card-img-top.u-photo itemprop="image" src=@{staticR ["img", userAvatar user]} alt="Avatar for #{userFullName user}">
<div .card-body>
<h4 .card-title.p-name itemprop="name">#{userFullName user}