added admin page, adjusted way of creating posts
This commit is contained in:
8
templates/login.tmpl
Normal file
8
templates/login.tmpl
Normal file
@@ -0,0 +1,8 @@
|
||||
{{ template "header.tmpl" . }}
|
||||
<h2>Admin Login</h2>
|
||||
<form action="/admin/login" method="POST">
|
||||
<input type="text" name="username" placeholder="username" />
|
||||
<input type="password" name="password" placeholder="password" />
|
||||
<button type="submit">Login</button>
|
||||
</form>
|
||||
{{ template "footer.tmpl" . }}
|
||||
Reference in New Issue
Block a user