about summary refs log tree commit diff stats
path: root/templates/post.templ
diff options
context:
space:
mode:
authorAlan Pearce2024-06-26 13:12:34 +0200
committerAlan Pearce2024-06-26 13:12:34 +0200
commit220020a35180426e6717481899b752796e9c6f4b (patch)
tree60e2c1526494e39a258d6ce67693d035900c2b30 /templates/post.templ
parent69cc95f98fdd283d1fc83c46f15cd48471c52c5c (diff)
downloadwebsite-220020a35180426e6717481899b752796e9c6f4b.tar.lz
website-220020a35180426e6717481899b752796e9c6f4b.tar.zst
website-220020a35180426e6717481899b752796e9c6f4b.zip
improve post microformats
Diffstat (limited to 'templates/post.templ')
-rw-r--r--templates/post.templ9
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)