Display an adorable tiny sparkline-style avatar for the p-author on each h-entry

This commit is contained in:
Danielle McLean 2017-10-11 23:09:22 +11:00
parent 12bed07680
commit 10b1ed834a
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
2 changed files with 4 additions and 1 deletions

View file

@ -5,3 +5,6 @@ article.h-entry
justify-content: space-evenly justify-content: space-evenly
> * > *
margin-right: 1em margin-right: 1em
> .p-author img
height: 1em
vertical-align: -0.1em

View file

@ -6,7 +6,7 @@
<div .card-footer> <div .card-footer>
$maybe author <- maybeAuthor $maybe author <- maybeAuthor
<a .p-author.h-card href=@{HomeR}> <a .p-author.h-card href=@{HomeR}>
<i .fa.fa-user> <img .u-photo src=@{AvatarR $ entryAuthorId entry} alt="Avatar for #{userFullName author}">
#{userFullName author} #{userFullName author}
<a .u-url href="@{entryR (Entity entryId entry)}"> <a .u-url href="@{entryR (Entity entryId entry)}">
<i .fa.fa-link> <i .fa.fa-link>