lebd/templates/mf2/h-card.hamlet

26 lines
1 KiB
Plaintext

<div .card.h-card .bg-dark itemscope itemtype="http://schema.org/Person">
$maybe route <- mcurrentRoute
<a .u-uid.u-url itemprop="url" href=@{route} hidden>
<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}
$forall key <- pgpKeys
<a .card-subtitle.u-key href=@{routeFromPgp key}>
<i .fa.fa-key>
#{prettyPgp key}
<link rel="pgpkey" type="application/pgp-keys" href=@{routeFromPgp key}>
<p .card-text.p-note .text-muted itemprop="description">#{userNote user}
<ul .profiles>
<li>
<a .u-email itemprop="email" rel="me" href="mailto:#{userEmail user}">
<i .fa.fa-envelope>
#{userEmail user}
$forall (site, profile) <- userProfiles
<li>
<a .u-url itemprop="sameAs" rel="me" href="#{siteUrl site}#{profileUsername profile}">
<i .fa.fa-#{siteIcon site}>
#{profileUsername profile}