summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2021-12-22 11:48:59 -0500
committerCara Salter <cara@devcara.com>2021-12-22 11:48:59 -0500
commit7b455b6152c52059eec584b50d43522de4366a14 (patch)
treef847044912a0f4494e42970af80dffbe7061b013 /templates
parent3d7cd8a7addd86b7a97a50821eb348345e0d427a (diff)
downloadsite-7b455b6152c52059eec584b50d43522de4366a14.tar.gz
site-7b455b6152c52059eec584b50d43522de4366a14.zip
code: Fix routing and fill out post templates
Diffstat (limited to 'templates')
-rw-r--r--templates/post.rs.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/post.rs.html b/templates/post.rs.html
index c638bfb..321dbec 100644
--- a/templates/post.rs.html
+++ b/templates/post.rs.html
@@ -3,7 +3,13 @@
@(post: Post, body: impl ToHtml)
-@:header_html(Some(&post.front_matter.title.clone()), None))
+@:header_html(Some(&post.front_matter.title.clone()), None)
+
+<h1>@post.front_matter.title.clone()</h1>
+<span>
+ <small>Posted @post.clone().date.format("%B %d %Y") by
+ @post.clone().author</small>
+</span>
@body