Basic site running

This commit is contained in:
Louis Hollingworth 2024-08-05 20:26:04 +01:00
parent 70fca57571
commit 2e24996510
Signed by: lucxjo
GPG key ID: A11415CB3DC7809B
6 changed files with 161 additions and 2 deletions

16
tmpl/base.html Normal file
View file

@ -0,0 +1,16 @@
{{define "base"}}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{template "title" .}}</title>
{{template "meta" .}}
<link rel="stylesheet" href="/static/vars.css">
<link rel="stylesheet" href="/static/smol.css">
</head>
<body>
{{template "body" .}}
</body>
</html>
{{end}}

13
tmpl/index.html Normal file
View file

@ -0,0 +1,13 @@
{{template "base" .}}
{{define "title"}}Calendar{{end}}
{{define "meta"}} {{end}}
{{define "body"}}
<header class="group">
<h1 class="text-2xl">Cal</h1>
</header>
{{end}}