Put the schema.org/Person stuff back. I decided to include friggin' Facebook's metadata approach, so this isn't that unreasonable

This commit is contained in:
Danielle McLean 2017-10-15 22:42:33 +11:00
parent a0004946d6
commit cdda4e2eee
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5

View file

@ -1,25 +1,25 @@
<article .card.h-card .bg-dark> <article .card.h-card .bg-dark itemscope itemtype="http://schema.org/Person">
$maybe route <- mcurrentRoute $maybe route <- mcurrentRoute
<a .u-uid.u-url href=@{route} hidden> <a .u-uid.u-url itemprop="url" href=@{route} hidden>
<img .card-img-top.u-photo src=@{AvatarR userId} alt=#{userFullName user}> <img .card-img-top.u-photo itemprop="image" src=@{AvatarR userId} alt=#{userFullName user}>
<div .card-body> <div .card-body>
<h4 .card-title.p-name>#{userFullName user} <h4 .card-title.p-name itemprop="name">#{userFullName user}
$forall key <- pgpKeys $forall key <- pgpKeys
<a .card-subtitle.u-key type="application/pgp-keys" href=@{routeFromPgp key}> <a .card-subtitle.u-key type="application/pgp-keys" href=@{routeFromPgp key}>
<i .fa.fa-key> <i .fa.fa-key>
#{prettyPgp key} #{prettyPgp key}
<div .p-note .text-muted>#{userNote user} <div .p-note itemprop="description" .text-muted>#{userNote user}
<ul .profiles> <ul .profiles>
<li> <li>
<a .u-email rel="me" href="mailto:#{userEmail user}"> <a .u-email rel="me" itemprop="email" href="mailto:#{userEmail user}">
<i .fa.fa-envelope> <i .fa.fa-envelope>
#{userEmail user} #{userEmail user}
$forall (Entity _ site, Entity _ profile) <- userProfiles $forall (Entity _ site, Entity _ profile) <- userProfiles
<li> <li>
<a .u-url rel="me" href="#{profileUrl site profile}"> <a .u-url rel="me" itemprop="sameAs" href="#{profileUrl site profile}">
<i .#{siteIcon site}> <i .#{siteIcon site}>
$maybe name <- profileDisplayName profile $maybe name <- profileDisplayName profile
#{name} #{name}