Files
Gardomatic/internal/web/templates/layout/base.tmpl
T
kleiax 904d14b64c
CI / test (push) Canceled after 0s
Initial commit
2026-09-12 22:22:17 +02:00

33 lines
1.5 KiB
Cheetah

{{define "base"}}
<!doctype html>
<html lang='de'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<meta name='theme-color' content='#315d3a'>
<title>{{template "title" .}} - Gardomatic</title>
<link rel='stylesheet' href='/static/css/main.css'>
<link rel='stylesheet' href='/static/css/cropper-1.6.2.min.css'>
{{if .UseJournalEditor}}<link rel='stylesheet' href='/static/css/toastui-editor-3.2.2.min.css'>{{end}}
<link rel='manifest' href='/static/manifest.manifest'>
<link rel='apple-touch-icon' href='/static/icons/apple-touch-icon.png'>
</head>
<body {{with .CurrentUser}}data-user-id='{{.ID}}'{{end}}>
<a class='skip-link' href='#main-content'>Zum Inhalt springen</a>
{{template "header" .}}
{{template "nav" .}}
<main id='main-content' tabindex='-1'>
{{with .Flash}}
<div class='flash'>{{.}}</div>
{{end}}
{{template "main" .}}
</main>
{{template "footer" .}}
<script src='/static/js/htmx-2.0.10.min.js' defer></script>
<script src='/static/js/cropper-1.6.2.min.js' defer></script>
{{if .UseJournalEditor}}<script src='/static/js/toastui-editor-3.2.2.min.js' defer></script><script src='/static/js/toastui-editor-de-de-3.2.2.min.js' defer></script>{{end}}
<script src='/static/js/main.js' defer></script>
</body>
</html>
{{end}}