all repos — homestead @ cc071c3fe4d2225e9c338a71e52f12e4b86ef84e

Code for my website

improve post microformats

Alan Pearce
commit

cc071c3fe4d2225e9c338a71e52f12e4b86ef84e

parent

261153359364d6cc4b7fa3a224b9a0d6d709a512

1 file changed, 7 insertions(+), 2 deletions(-)

jump to
M templates/post.templtemplates/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)