site.lyte.dev/layouts/_default/baseof.html

47 lines
1.7 KiB
HTML
Raw Normal View History

2020-07-14 16:47:54 -05:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
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" />
2020-12-15 16:30:13 -06:00
<link rel="stylesheet" href="/styles.css" />
2020-09-14 11:06:55 -05:00
<script defer src="/global.js"></script>
<script defer src="//a.lyte.dev/matomo.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>
2020-12-15 16:12:14 -06:00
<a href="#start-of-content" class="hidden-in-browsers js-disabled-only">Skip to Content</a>
2020-12-16 00:13:13 -06:00
<section>
2020-12-15 16:12:14 -06:00
<a href="/" 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">
<button class="no-bg theme-toggler js-only centerize">
2020-12-16 00:34:29 -06:00
{{ partial "theme-toggle.html" . }}
2020-12-16 00:13:13 -06:00
</button>
<button class="no-bg align-toggler js-only hidden-on-mobile centerize">
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>
2020-12-16 00:13:13 -06:00
<main>{{ block "main" . }}{{ .Content }}{{ end }}</main>
<footer style="padding-bottom: 5em"></footer>
2020-07-14 16:47:54 -05:00
</body>
</html>