2024-08-28 14:53:54 +03:00
|
|
|
{{ define "header" }}
|
2024-03-28 10:21:04 +03:00
|
|
|
<header>
|
2024-05-08 15:56:11 +03:00
|
|
|
<h1>{{ config.Title }}</h1>
|
2024-10-21 16:46:25 +03:00
|
|
|
<p>{{ translate "time.date" }} <span id="today-date">a place</span> <span id="grace" hidden>({{ translate "time.grace" }})</span></p>
|
2024-03-28 10:21:04 +03:00
|
|
|
</header>
|
2024-08-28 14:53:54 +03:00
|
|
|
{{ end }}
|
2024-03-28 10:21:04 +03:00
|
|
|
|
2024-08-28 14:53:54 +03:00
|
|
|
{{- define "base" -}}
|
2024-03-28 10:21:04 +03:00
|
|
|
<!DOCTYPE html>
|
2024-10-21 16:46:25 +03:00
|
|
|
<html lang="{{ translate "lang" }}">
|
2024-03-28 10:21:04 +03:00
|
|
|
<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" />
|
2024-03-28 10:21:04 +03:00
|
|
|
<link rel="icon" type="image/x-icon" href="/public/favicon.ico">
|
|
|
|
<link rel="stylesheet" href="/public/main.css">
|
2024-08-28 14:53:54 +03:00
|
|
|
{{- if config.Theme -}}<link rel="stylesheet" href="/public/themes/{{ config.Theme }}.css">{{ end }}
|
2024-05-08 16:49:34 +03:00
|
|
|
<script src="/public/main.js"></script>
|
2024-05-05 13:06:20 +03:00
|
|
|
<title>Hibiscus.txt</title>
|
2024-03-28 10:21:04 +03:00
|
|
|
</head>
|
|
|
|
<body>
|
2024-08-28 14:53:54 +03:00
|
|
|
{{- template "header" . -}}
|
2024-03-28 10:21:04 +03:00
|
|
|
<main>
|
2024-08-28 14:53:54 +03:00
|
|
|
{{- template "main" . -}}
|
2024-03-28 10:21:04 +03:00
|
|
|
</main>
|
2024-08-28 14:53:54 +03:00
|
|
|
{{- template "footer" . -}}
|
2024-05-05 13:06:20 +03:00
|
|
|
<script defer>
|
2024-05-09 23:44:37 +03:00
|
|
|
const langName="{{ config.Language }}";
|
|
|
|
const timeZone="{{ config.Timezone }}";
|
2024-05-06 14:53:18 +03:00
|
|
|
beginTimeUpdater()
|
2024-05-05 13:06:20 +03:00
|
|
|
</script>
|
2024-03-28 10:21:04 +03:00
|
|
|
</body>
|
|
|
|
</html>
|
2024-08-28 14:53:54 +03:00
|
|
|
{{ end }}
|
2024-03-28 10:21:04 +03:00
|
|
|
|
2024-08-28 14:53:54 +03:00
|
|
|
{{ define "footer" }}
|
2024-05-18 16:15:20 +03:00
|
|
|
<footer id="footer">
|
2024-10-21 16:46:25 +03:00
|
|
|
<p><a href="/">{{ translate "link.today" }}</a> | <a href="/day">{{ translate "link.days" }}</a> | <a href="/notes">{{ translate "link.notes" }}</a>
|
|
|
|
<span style="float:right;"><a class="no-accent" href="/info" title="{{ translate "link.info" }}">v{{ info.Version }}</a></span></p>
|
2024-03-28 10:21:04 +03:00
|
|
|
</footer>
|
2024-08-28 14:53:54 +03:00
|
|
|
{{ end }}
|