hibiscus/pages/base.html

39 lines
1.2 KiB
HTML
Raw Normal View History

{{define "header"}}
<header>
<h1>🌺 Hibiscus.txt</h1>
2024-05-05 13:06:20 +03:00
<p>{{translatableText "time.date"}} <span id="today-date">a place</span> <span id="grace" hidden>({{ translatableText "time.grace" }})</span></p>
</header>
{{end}}
{{define "base"}}
<!DOCTYPE html>
2024-05-03 15:40:40 +03:00
<html lang="{{ translatableText "lang" }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
2024-05-05 13:06:20 +03:00
<link rel="manifest" href="/public/manifest.json" />
<link rel="icon" type="image/x-icon" href="/public/favicon.ico">
<link rel="stylesheet" href="/public/main.css">
<script src="/public/date.js"></script>
2024-05-05 13:06:20 +03:00
<title>Hibiscus.txt</title>
</head>
<body>
{{template "header" .}}
<main>
{{template "main" .}}
</main>
{{template "footer" .}}
2024-05-05 13:06:20 +03:00
<script defer>
const langName="{{ translatableText "lang" }}";
const graceActive={{ graceActive }};
updateDate();beginDateUpdater()
</script>
</body>
</html>
{{end}}
{{define "footer"}}
<footer>
2024-05-03 15:40:40 +03:00
<p><a href="/">{{ translatableText "link.today" }}</a> | <a href="/day">{{ translatableText "link.days" }}</a> | <a href="/notes">{{ translatableText "link.notes" }}</a></p>
</footer>
{{end}}