Remove the gross schema.org attributes from the h-card, since mf2 provides the same information in a nicer format anyway

This commit is contained in:
Danielle McLean 2017-10-11 13:19:13 +11:00
parent 0055a4160b
commit 3830bed42e
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5

View file

@ -1,26 +1,26 @@
<div .card.h-card .bg-dark itemscope itemtype="http://schema.org/Person">
<div .card.h-card .bg-dark>
$maybe route <- mcurrentRoute
<a .u-uid.u-url itemprop="url" href=@{route} hidden>
<a .u-uid.u-url href=@{route} hidden>
<img .card-img-top.u-photo itemprop="image" src=@{staticR ["img", userAvatar user]} alt="Avatar for #{userFullName user}">
<img .card-img-top.u-photo src=@{staticR ["img", userAvatar user]} alt="Avatar for #{userFullName user}">
<div .card-body>
<h4 .card-title.p-name itemprop="name">#{userFullName user}
<h4 .card-title.p-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}
<p .card-text.p-note .text-muted>#{userNote user}
<ul .profiles>
<li>
<a .u-email itemprop="email" rel="me" href="mailto:#{userEmail user}">
<a .u-email rel="me" href="mailto:#{userEmail user}">
<i .fa.fa-envelope>
#{userEmail user}
$forall (Entity _ site, Entity _ profile) <- userProfiles
<li>
<a .u-url itemprop="sameAs" rel="me" href="#{profileUrl site profile}">
<a .u-url rel="me" href="#{profileUrl site profile}">
<i .#{siteIcon site}>
$maybe name <- profileDisplayName profile
#{name}