all repos — website @ 220020a35180426e6717481899b752796e9c6f4b

My website

improve post microformats

Alan Pearce
commit

220020a35180426e6717481899b752796e9c6f4b

parent

69cc95f98fdd283d1fc83c46f15cd48471c52c5c

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

changed files
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)