{{ define "header" }} <header> <h1>{{ config.Title }}</h1> <p>{{ translate "time.date" }} <span id="today-date">a place</span> <span id="grace" hidden>({{ translate "time.grace" }})</span></p> </header> {{ end }} {{- define "base" -}} <!DOCTYPE html> <html lang="{{ translate "lang" }}"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <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"> {{- if config.Theme -}}<link rel="stylesheet" href="/public/themes/{{ config.Theme }}.css">{{ end }} <script src="/public/main.js"></script> <title>Hibiscus.txt</title> </head> <body> {{- template "header" . -}} <main> {{- template "main" . -}} </main> {{- template "footer" . -}} <script defer> const langName="{{ config.Language }}"; const timeZone="{{ config.Timezone }}"; beginTimeUpdater() </script> </body> </html> {{ end }} {{ define "footer" }} <footer id="footer"> <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> </footer> {{ end }}