27 lines
897 B
Cheetah
27 lines
897 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" required pattern=".{3,}" title="Author name must be atleast 3 chars." placeholder="Name" maxlength="50" name="author"/>
|
|
<input type="field" required pattern=".{15,}" title="Your comment must be atleast 15 chars." placeholder="Comment" maxlength="500" name="content" />
|
|
<input type="text" required style="display: none;" name="url" value="{{ .Url }}" readonly />
|
|
<button type="submit">Post</button>
|
|
</form>
|
|
</div>
|
|
{{ template "footer_no_banners.tmpl" . }}
|