Add support for social profiles on the h-card, which become rel="me" links

This commit is contained in:
Danielle McLean 2017-10-03 12:53:13 +11:00
parent c5fd0fd326
commit e81a44d122
Signed by: 00dani
GPG key ID: 3844A6973C6058F1
5 changed files with 21 additions and 4 deletions

View file

@ -1,3 +1,5 @@
.card.h-card
margin: 2em auto
width: 20rem
width: 22rem
.card-link
white-space: nowrap

View file

@ -6,3 +6,7 @@
<a .card-link.u-email rel="me" href="mailto:#{userEmail user}">
<i .fa.fa-envelope>
#{userEmail user}
$forall (site, profile) <- userProfiles
<a .card-link.u-url rel="me" href="#{siteUrl site}#{profileUsername profile}">
<i .fa.fa-#{siteIcon site}>
#{profileUsername profile}