24 lines
552 B
Cheetah
24 lines
552 B
Cheetah
{{ template "header.tmpl" . }}
|
|
<div>
|
|
<h3>{{ .Title }}</h3>
|
|
<div>{{ .Content }}</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 }}
|
|
<form method="POST" action="">
|
|
<input type="text" placeholder="Name" name="author"/>
|
|
<input type="field" name="content" />
|
|
<input type="text" style="display: none;" value="{{ .Url }}" readonly />
|
|
</form>
|
|
</div>
|
|
{{ template "footer.tmpl" . }}
|