Fix navigation on login page

This commit is contained in:
ekzyis 2023-09-09 22:52:50 +02:00
parent 5e275b106c
commit 4fcd9770db
1 changed files with 5 additions and 1 deletions

View File

@ -15,7 +15,11 @@
<header class="flex flex-row text-center justify-center pt-1">
<nav>
<a href="/">home</a>
{{ if .session }} <a href="/login">login</a> {{ else }} <a href="/logout">logout</a> {{ end }}
{{ if .session }}
<form action='/logout' method='post'>
<button type='submit'>logout</button>
</form>
{{ else }} <a href="/login">login</a> {{ end }}
</nav>
</header>
<div class="container flex flex-column text-center justify-center">