add handler, html templates, Makefile and migrations

This commit is contained in:
Philipp 2021-08-29 16:37:20 +02:00
commit a06e8db2ff
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 276B613AF9DBE9C3
22 changed files with 1001 additions and 0 deletions

31
templates/layout.html Normal file
View file

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
</head>
<body>
<nav class="navbar navbar-light container">
<a class="navbar-brand text-primary" href="/">goddit</a>
</nav>
<div class="header bg-light border-bottom border-top py-5">
<div class="container">
{{block "header" .}}{{end}}
</div>
</div>
<div class="container py-5">
<div class="row">
<div class="col-xl-8 order-1 order-xl-0">
{{block "content" .}}{{end}}
</div>
<div class="col-xl-4 order-0 order-xl-1">
{{block "sidebar" .}}{{end}}
</div>
</div>
</div>
</body>
</html>