added blog comment form to blog posts
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
{{ template "header.tmpl" . }}
|
||||
<h2>Blog posts</h2>
|
||||
|
||||
{{ range $val := . }}
|
||||
<div class="post-record">
|
||||
<div>
|
||||
|
||||
@@ -12,5 +12,10 @@
|
||||
{{ 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" value="{{ .Url }}" readonly />
|
||||
</form>
|
||||
</div>
|
||||
{{ template "footer.tmpl" . }}
|
||||
|
||||
Reference in New Issue
Block a user