2022-10-20 16:59:33 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>SiteName - {{ template "pageTitle" }}</title>
|
2023-12-21 06:14:28 +00:00
|
|
|
<link href="/static/css/style.css" rel="stylesheet">
|
2022-10-20 16:59:33 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2024-02-14 19:20:35 +00:00
|
|
|
<div class="navbar">
|
|
|
|
{{ if .IsAuthenticated }}
|
|
|
|
<form action="/logout" method="post">
|
|
|
|
<input name="csrf_token" type="hidden" value="{{ .CsrfToken }}">
|
|
|
|
<input type="submit" value="Logout">
|
|
|
|
</form>
|
|
|
|
{{ else }}
|
|
|
|
<form action="/login" method="get">
|
|
|
|
<input type="submit" value="Login">
|
|
|
|
</form>
|
|
|
|
<form action="/register" method="get">
|
|
|
|
<input type="submit" value="Register">
|
|
|
|
</form>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2022-10-20 16:59:33 +00:00
|
|
|
{{ template "content" . }}
|
2023-03-06 18:44:20 +00:00
|
|
|
<div class="footer-container">
|
|
|
|
<footer>
|
|
|
|
<p>SiteName - Powered by GoWeb!</p>
|
|
|
|
</footer>
|
|
|
|
</div>
|
2022-10-20 16:59:33 +00:00
|
|
|
</body>
|
2023-03-06 18:44:20 +00:00
|
|
|
</html>
|