27 lines
714 B
Cheetah
27 lines
714 B
Cheetah
{{ template "header.tmpl" . }}
|
|
<div>
|
|
<h2>{{ .Title }}</h2>
|
|
<div>{{ .Content }}</div>
|
|
<h4>Comments</h4>
|
|
{{ range $comment := .Comments }}
|
|
<div class="comment">
|
|
<div>
|
|
{{ $comment.Author }} at {{ $comment.Date }}
|
|
</div>
|
|
<div class="comment-body">
|
|
{{ $comment.Content }}
|
|
</div>
|
|
</div>
|
|
{{ else }}
|
|
<p>No comments...</p>
|
|
{{ end }}
|
|
<h4>Leave a comment!</h4>
|
|
<form method="POST" action="/blog/post/comment">
|
|
<input type="text" placeholder="Name" name="author"/>
|
|
<input type="field" placeholder="Comment" name="content" />
|
|
<input type="text" style="display: none;" name="url" value="{{ .Url }}" readonly />
|
|
<button type="submit">Post</button>
|
|
</form>
|
|
</div>
|
|
{{ template "footer_no_banners.tmpl" . }}
|