layed out the individual blog post template

This commit is contained in:
rawleyIfowler
2022-02-16 16:08:24 -06:00
parent 2d47cbe494
commit 1bd6865c40

16
templates/blog_post.tmpl Normal file
View File

@@ -0,0 +1,16 @@
{{ template "header.tmpl" . }}
<div>
{{ range $comment := .Comments }}
<div class="comment">
<div>
By {{ $comment.Author }} on{{ $comment.Date }}
</div>
<div>
{{ $comment.Content }}
</div>
</div>
{{ else }}
<p>No comments...</p>
{{ end }}
</div>
{{ template "footer.tmpl" . }}