From 1bd6865c404fb77cdaefbe17ab5e5b02c15fb6b6 Mon Sep 17 00:00:00 2001 From: rawleyIfowler Date: Wed, 16 Feb 2022 16:08:24 -0600 Subject: [PATCH] layed out the individual blog post template --- templates/blog_post.tmpl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 templates/blog_post.tmpl diff --git a/templates/blog_post.tmpl b/templates/blog_post.tmpl new file mode 100644 index 0000000..72c94bf --- /dev/null +++ b/templates/blog_post.tmpl @@ -0,0 +1,16 @@ +{{ template "header.tmpl" . }} +
+{{ range $comment := .Comments }} +
+
+ By {{ $comment.Author }} on{{ $comment.Date }} +
+
+ {{ $comment.Content }} +
+
+{{ else }} +

No comments...

+{{ end }} +
+{{ template "footer.tmpl" . }}