lebd/templates/mf2/h-entry.hamlet

23 lines
856 B
Text

<article .h-entry .card.bg-dark>
<div .card-body>
<h4 .p-name .card-title>#{entryName entry}
<div .e-content>
#{entryContent entry}
<div .card-footer>
$maybe author <- maybeAuthor
<a .p-author.h-card href=@{HomeR}>
<i .fa.fa-user>
#{userFullName author}
<a .u-url href="@{entryR (Entity entryId entry)}">
<i .fa.fa-link>
permalink
<time .dt-published datetime=#{timeUnfriendly published} title=#{timeUnfriendly published}>
<i .fa.fa-calendar>
#{timeFriendly published}
<time .dt-updated datetime=#{timeUnfriendly updated} title=#{timeUnfriendly updated} :published == updated:hidden>
<i .fa.fa-pencil>
#{timeFriendly updated}
$forall (E.Value url, E.Value icon, E.Value name) <- posses
<a .u-syndication href=#{url}>
<i .#{icon}>
#{name}