diff options
author | Alan Pearce | 2024-06-26 13:12:34 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-26 13:12:34 +0200 |
commit | 220020a35180426e6717481899b752796e9c6f4b (patch) | |
tree | 60e2c1526494e39a258d6ce67693d035900c2b30 /templates | |
parent | 69cc95f98fdd283d1fc83c46f15cd48471c52c5c (diff) | |
download | website-220020a35180426e6717481899b752796e9c6f4b.tar.lz website-220020a35180426e6717481899b752796e9c6f4b.tar.zst website-220020a35180426e6717481899b752796e9c6f4b.zip |
improve post microformats
Diffstat (limited to 'templates')
-rw-r--r-- | templates/post.templ | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/templates/post.templ b/templates/post.templ index 5b09d4b..7b82584 100644 --- a/templates/post.templ +++ b/templates/post.templ @@ -26,12 +26,17 @@ templ PostPage(config config.Config, post content.Post) { "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) |