2020-07-14 16:47:54 -05:00
|
|
|
<!DOCTYPE html>
|
2022-03-09 10:55:32 -06:00
|
|
|
<html lang="en">
|
2020-07-14 16:47:54 -05:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2022-03-09 10:55:32 -06:00
|
|
|
<meta name="description" content="{{ if .Params.summary }}{{ .Params.summary }}{{ else }}{{ .Site.Params.Description }}{{ end }}">
|
2020-07-14 17:52:42 -05:00
|
|
|
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
2020-07-14 16:47:54 -05:00
|
|
|
<link rel="shortcut icon" href="/icon.png" />
|
2022-03-09 10:55:32 -06:00
|
|
|
<link defer rel="stylesheet" href="/styles.css" />
|
2020-09-14 11:06:55 -05:00
|
|
|
<script defer src="/global.js"></script>
|
2021-07-22 00:15:08 -05:00
|
|
|
<script async defer data-domain="lyte.dev" src="https://a.lyte.dev/js/plausible.js"></script>
|
2020-09-17 13:35:38 -05:00
|
|
|
<script defer src="//instant.page/5.1.0" type="module" integrity="sha384-by67kQnR+pyfy8yWP4kPO12fHKRLHZPfEsiSXR8u2IKcTdxD805MGUXBzVPnkLHw"></script>
|
2020-07-14 16:47:54 -05:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
2022-03-09 10:55:32 -06:00
|
|
|
<a href="#start-of-content" class="hide-unless-focused">Skip to Content</a>
|
2020-12-16 00:13:13 -06:00
|
|
|
<section>
|
2022-03-09 10:55:32 -06:00
|
|
|
<a href="/" aria-label="index link" id="logo">
|
2020-12-16 00:34:29 -06:00
|
|
|
{{ partial "logo.svg.html" . }}
|
2020-12-16 00:13:13 -06:00
|
|
|
</a>
|
|
|
|
<a href="/">
|
|
|
|
<h1>lyte.dev</h1>
|
|
|
|
</a>
|
|
|
|
</section>
|
2020-07-14 16:47:54 -05:00
|
|
|
<section>
|
|
|
|
{{ $currentPage := . }}
|
|
|
|
{{ range .Site.Menus.main }}
|
|
|
|
{{ $active := or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}
|
|
|
|
{{ $active = or $active (eq .Name $currentPage.Title) }}
|
|
|
|
{{ $active = or $active (and (eq .Name "Blog") (eq $currentPage.Section "post")) }}
|
|
|
|
{{ $active = or $active (and (eq .Name "Tags") (eq $currentPage.Section "tags")) }}
|
|
|
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
|
|
{{ end }}
|
|
|
|
</section>
|
2020-12-16 00:13:13 -06:00
|
|
|
<section style="position:absolute;height:100%;right:0">
|
2022-03-09 10:55:32 -06:00
|
|
|
<button class="no-bg theme-toggler js-only centerize" aria-label="toggle dark theme">
|
2020-12-16 00:34:29 -06:00
|
|
|
{{ partial "theme-toggle.html" . }}
|
2020-12-16 00:13:13 -06:00
|
|
|
</button>
|
2022-03-09 10:55:32 -06:00
|
|
|
<button class="no-bg align-toggler js-only hidden-on-mobile centerize" aria-label="toggle text alignment">
|
2020-12-16 00:34:29 -06:00
|
|
|
{{ partial "align-toggle.html" . }}
|
2020-12-16 00:13:13 -06:00
|
|
|
</button>
|
|
|
|
</section>
|
2020-07-14 16:47:54 -05:00
|
|
|
</header>
|
2022-03-09 10:55:32 -06:00
|
|
|
<main id="start-of-content">{{ block "main" . }}{{ .Content }}{{ end }}</main>
|
2022-11-22 14:58:48 -06:00
|
|
|
<footer>
|
|
|
|
<h2 id="footer-links">External Links</h2>
|
|
|
|
|
|
|
|
<ul class="horizontal-blocks">
|
|
|
|
<li>
|
|
|
|
<a href="https://discord.gg/jUCXCYp">Discord</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="mailto:daniel@lyte.dev">Email</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://git.lyte.dev/lytedev">git.lyte.dev</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://github.com/lytedev">GitHub</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h2 id="footer-meta">Meta</h2>
|
|
|
|
|
|
|
|
<ul class="horizontal-blocks">
|
|
|
|
<li>
|
|
|
|
<a href="/privacy">Privacy Policy</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="https://git.lyte.dev/lytedev/site.lyte.dev">Site Code</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</footer>
|
2020-07-14 16:47:54 -05:00
|
|
|
</body>
|
|
|
|
</html>
|