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" . }}