Create an h-card widget and display my h-card on the homepage - needs more info but it's a good start

This commit is contained in:
Danielle McLean 2017-10-03 00:52:14 +11:00
parent 5eccafa9c2
commit 006264e77f
Signed by: 00dani
GPG key ID: 3844A6973C6058F1
6 changed files with 27 additions and 2 deletions

5
templates/hcard.hamlet Normal file
View file

@ -0,0 +1,5 @@
<div .card.h-card>
$maybe avatar <- userAvatar user
<img .card-img-top.u-photo src=@{img avatar} alt="Avatar for #{userFullName user}">
<div .card-body>
<h4 .card-title.p-name>#{userFullName user}

View file

@ -0,0 +1 @@
^{hcard user}