improve post microformats
Alan Pearce alan@alanpearce.eu
Wed, 26 Jun 2024 13:12:34 +0200
1 files changed, 7 insertions(+), 2 deletions(-)
jump to
M templates/post.templ → templates/post.templ
@@ -26,12 +26,17 @@ TitleAttrs: templ.Attributes{ "class": "p-author h-card", "rel": "author", }, + BodyAttrs: templ.Attributes{ + "class": "h-entry", + }, Path: post.URL, }) { - <article class="h-entry"> + <article> <h1 class="p-name">{ post.Title }</h1> <p> - @postDate(post.Date) + <a class="u-url" href={ templ.SafeURL(post.URL) }> + @postDate(post.Date) + </a> </p> <div class="e-content"> @Unsafe(post.Content)