added template for spam posts, added spam filter, added new js to redirect

This commit is contained in:
rawleyIfowler
2022-02-26 10:15:57 -06:00
parent 7d8faeed62
commit b1c76c2094
4 changed files with 53 additions and 4 deletions

View File

@@ -1,5 +1,11 @@
{{ template "header.tmpl" . }}
<h2>Your comment is being posted...</h2>
<p>Click <a href="/blog/post/{{ .Url }}">here</a> to return to the blog post.</p>
<p>You will be redirected or, click <a href="/blog/post/{{ .Url }}">here</a> to return to the blog post.</p>
<input value="{{ .Url }}" readonly style="display: none;" id="url"/>
<script>
setTimeout(() => {
window.location.replace("/blog/post/" + document.getElementById("url").value)
}, 1500)
</script>
</body>
</html>