{{ define "title" }}{{ .Data.Post.Title }}{{ end }}
{{ define "content" }}
{{ $p := .Data.Post }}
{{ RenderPost .Request $p false 0 }}
{{ if and .LoggedIn .CurrentUser.Admin }}
Admin Actions:
[
Edit |
Delete
]
{{ end }}
{{ if $p.EnableComments }}
Comments
{{ $idStr := printf "%d" $p.ID}}
{{ RenderComments .Request $p.Title "post" $idStr }}
{{ else }}
Comments are disabled on this post.
{{ end }}
{{ end }}