lebd/templates/mf2/h-entry.hamlet

27 lines
1,022 B
Text

<article .h-entry .card.bg-dark>
<div .card-body>
$maybe name <- entryName entry
<h4 .p-name .card-title>#{name}
<div .e-content>
#{entryContent entry}
$nothing
<div .e-content.p-name>
#{entryContent entry}
<div .card-footer>
$maybe author <- maybeAuthor
<a .p-author.h-card href=@{HomeR}>
<img .u-photo src=@{AvatarR $ entryAuthorId entry} alt=#{userFullName author}>
#{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}