2026-05-25 15:36:49 +03:00
|
|
|
{{define "base"}}
|
|
|
|
|
<!doctype html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
|
<title>{{if .Title}}{{.Title}} - {{end}}{{.AppName}}</title>
|
|
|
|
|
<meta name="description" content="{{.Description}}">
|
2026-05-25 16:26:47 +03:00
|
|
|
<meta name="theme-color" content="#09090b">
|
2026-05-25 15:36:49 +03:00
|
|
|
<meta property="og:site_name" content="{{.AppName}}">
|
|
|
|
|
<meta property="og:title" content="{{if .Title}}{{.Title}}{{else}}{{.AppName}}{{end}}">
|
|
|
|
|
<meta property="og:description" content="{{.Description}}">
|
|
|
|
|
<meta property="og:type" content="website">
|
|
|
|
|
<meta property="og:url" content="{{.BaseURL}}">
|
2026-05-25 16:52:57 +03:00
|
|
|
{{if .ImageURL}}<meta property="og:image" content="{{.ImageURL}}">{{end}}
|
2026-05-25 15:36:49 +03:00
|
|
|
<meta name="twitter:card" content="summary_large_image">
|
2026-05-25 16:52:57 +03:00
|
|
|
{{if .ImageURL}}<meta name="twitter:image" content="{{.ImageURL}}">{{end}}
|
2026-05-25 15:36:49 +03:00
|
|
|
<link rel="stylesheet" href="/static/css/app.css">
|
|
|
|
|
<script defer src="/static/js/app.js"></script>
|
|
|
|
|
</head>
|
2026-05-25 16:26:47 +03:00
|
|
|
<body class="dark">
|
2026-05-25 15:36:49 +03:00
|
|
|
<a class="skip-link" href="#main">Skip to content</a>
|
|
|
|
|
<header class="site-header">
|
|
|
|
|
<nav class="nav" aria-label="Main navigation">
|
|
|
|
|
<a class="brand" href="/" aria-label="{{.AppName}} home">
|
|
|
|
|
<span class="brand-mark" aria-hidden="true">W</span>
|
|
|
|
|
<span>{{.AppName}}</span>
|
|
|
|
|
</a>
|
|
|
|
|
<div class="nav-links">
|
2026-05-30 15:42:35 +03:00
|
|
|
{{if .CurrentUser}}
|
2026-05-30 17:23:20 +03:00
|
|
|
<a class="button button-ghost" href="/api">API</a>
|
|
|
|
|
<a class="button button-outline" href="/account/settings">My Account</a>
|
2026-05-30 15:42:35 +03:00
|
|
|
{{else}}
|
|
|
|
|
<a class="button button-ghost" href="/login">Login</a>
|
2026-05-29 23:44:05 +03:00
|
|
|
<a class="button button-ghost" href="/api">API</a>
|
2026-05-30 17:23:20 +03:00
|
|
|
{{end}}
|
2026-05-25 15:36:49 +03:00
|
|
|
</div>
|
|
|
|
|
</nav>
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<main id="main">
|
|
|
|
|
{{template "content" .}}
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
|
|
<footer class="site-footer">
|
2026-05-25 16:26:47 +03:00
|
|
|
<span>{{.AppName}} · {{.CurrentYear}} · self-hosted</span>
|
2026-05-30 17:23:20 +03:00
|
|
|
<span class="footer-links">{{if .CurrentUser}}<a href="/api">API</a><a href="/account/settings">My Account</a>{{else}}<a href="/login">Login</a><a href="/api">API</a>{{end}}</span>
|
2026-05-25 15:36:49 +03:00
|
|
|
</footer>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
{{end}}
|