added blog comment form to blog posts
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
{{ template "header.tmpl" . }}
|
{{ template "header.tmpl" . }}
|
||||||
<h2>Blog posts</h2>
|
<h2>Blog posts</h2>
|
||||||
|
|
||||||
{{ range $val := . }}
|
{{ range $val := . }}
|
||||||
<div class="post-record">
|
<div class="post-record">
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -12,5 +12,10 @@
|
|||||||
{{ else }}
|
{{ else }}
|
||||||
<p>No comments...</p>
|
<p>No comments...</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
<form method="POST" action="">
|
||||||
|
<input type="text" placeholder="Name" name="author"/>
|
||||||
|
<input type="field" name="content" />
|
||||||
|
<input type="text" value="{{ .Url }}" readonly />
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{{ template "footer.tmpl" . }}
|
{{ template "footer.tmpl" . }}
|
||||||
|
|||||||
Reference in New Issue
Block a user