- Module github.com/cdnutter/canon, binary/command cmd/canon, Docker image and compose project "canon" - Environment variables now use the CANON_ prefix - Default site title is "<Your name>'s Canon" (or "Canon" with no name); a Site title set in Settings still overrides it - Existing topdeck.db (and WAL files) is renamed to canon.db on start - README: upgrade notes, including moving the old compose volume Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
48 lines
2.2 KiB
HTML
48 lines
2.2 KiB
HTML
<!doctype html>
|
|
<html lang="en" data-theme="{{.Site.Theme}}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{{if .PageTitle}}{{.PageTitle}} · {{end}}{{.Site.Title}}</title>
|
|
<meta name="description" content="{{if .Site.Tagline}}{{.Site.Tagline}}{{else}}{{.Site.Title}}: a ranked collection of favorites{{end}}">
|
|
<meta property="og:title" content="{{if .PageTitle}}{{.PageTitle}} · {{end}}{{.Site.Title}}">
|
|
<link rel="icon" href="/static/img/favicon.svg" type="image/svg+xml">
|
|
<link rel="stylesheet" href="/static/css/themes.css?v={{.AssetVer}}">
|
|
<link rel="stylesheet" href="/static/css/app.css?v={{.AssetVer}}">
|
|
{{- if .Site.CustomCSS}}
|
|
<link rel="stylesheet" href="/custom.css?v={{.Site.CSSVersion}}">
|
|
{{- end}}
|
|
</head>
|
|
<body class="{{block "bodyclass" .}}{{end}}">
|
|
<a class="skip-link" href="#main">Skip to content</a>
|
|
<header class="topbar">
|
|
<div class="topbar-inner container">
|
|
<a class="brand" href="/">
|
|
{{- if .Site.AvatarURL}}<img class="brand-avatar" src="{{.Site.AvatarURL}}" alt="">{{else}}<span class="brand-mark">{{icon "deck"}}</span>{{end -}}
|
|
<span class="brand-name">{{.Site.Title}}</span>
|
|
</a>
|
|
{{- if .LoggedIn}}
|
|
<nav class="topnav" aria-label="Admin">
|
|
<a href="/admin"{{if or (eq .Path "/admin") (hasPrefix .Path "/admin/lists")}} aria-current="page"{{end}}>{{icon "list"}}<span>Lists</span></a>
|
|
<a href="/admin/settings"{{if eq .Path "/admin/settings"}} aria-current="page"{{end}}>{{icon "settings"}}<span>Settings</span></a>
|
|
<form method="post" action="/logout" class="topnav-form">
|
|
<button type="submit" class="topnav-btn" title="Sign out ({{.Username}})">{{icon "logout"}}<span class="sr-only">Sign out</span></button>
|
|
</form>
|
|
</nav>
|
|
{{- end}}
|
|
</div>
|
|
</header>
|
|
<main id="main">
|
|
{{block "content" .}}{{end}}
|
|
</main>
|
|
<footer class="footer">
|
|
<div class="container footer-inner">
|
|
<span>{{if .Site.OwnerName}}Curated by {{.Site.OwnerName}}{{else}}{{.Site.Title}}{{end}}</span>
|
|
<span class="footer-sep" aria-hidden="true">·</span>
|
|
<span>Powered by <a href="https://git.iamchrisama.com/cdnutter/canon" rel="noopener">Canon</a></span>
|
|
</div>
|
|
</footer>
|
|
{{block "scripts" .}}{{end}}
|
|
</body>
|
|
</html>
|