about summary refs log tree commit diff stats
path: root/templates/post.templ
diff options
context:
space:
mode:
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)