added comments and added a comment end point

This commit is contained in:
rawleyIfowler
2022-02-25 17:59:48 -06:00
parent 979ef41aec
commit 598f372acd
4 changed files with 37 additions and 13 deletions

View File

@@ -16,11 +16,11 @@
<p>No comments...</p>
{{ end }}
<h4>Leave a comment!</h4>
<form method="POST" action="/post/comment">
<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;" value="{{ .Url }}" readonly />
<input type="text" style="display: none;" name="url" value="{{ .Url }}" readonly />
<button type="submit">Post</button>
</form>
</div>
{{ template "footer.tmpl" . }}
{{ template "footer_no_banners.tmpl" . }}