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
{{ block "head-begin" . }}{{ end }}
< 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
{{ block "head-end" . }}{{ end }}
< / head >
< body >
2020-07-14 17:52:42 -05:00
{{ block "body-begin" . }}{{ end }}
2020-07-14 16:47:54 -05:00
< 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 >
< section >
< a href = "/" id = "logo" >
< svg version = "1.1" viewBox = "0 0 70 60" width = "48" height = "48" alt = "lyte.dev LED icon" >
< linearGradient id = "logo-gradient" x1 = "0" x2 = "0" y1 = "0" y2 = "1" >
< stop offset = "50%" style = "stop-color:var(--pc)" > < / stop >
< stop offset = "100%" style = "stop-color:var(--pcd)" > < / stop >
< / linearGradient >
< filter id = "logo-shadow" >
< feGaussianBlur stdDeviation = "1" > < / feGaussianBlur >
< feOffset dx = "0" dy = "1.5" result = "offsetblur" > < / feOffset >
< feMerge >
< feMergeNode > < / feMergeNode >
< feMergeNode in = "SourceGraphic" > < / feMergeNode >
< / feMerge >
< / filter >
< path id = "logo-path" stroke-width = "3.5" fill-opacity = "0" stroke-linecap = "round" stroke-linejoin = "round" d = "M 19.5 44.6 h 30 v -12.3 a 15.0 14.057142857142859 0 0 0 -30 0 v 12.3 M 19.5 44.6 m 8 0 v 7 m 14 -7 v 7 M 19.5 44.6 m -9 -13.3 h -5 M 19.5 44.6 m -2.6999999999999997 -28.3 l -3.55 -3.55 M 19.5 44.6 m 15.0 -35.6 v -5 M 19.5 44.6 m 32.7 -28.3 l 3.55 -3.55 M 19.5 44.6 m 39 -13.3 h 5 M 19.5 44.6 m 8.0 -12.3 a 7.5 6.15 0 0 1 7.0 -6.5" > < / path >
< use href = "#logo-path" style = "filter: url(#logo-shadow);" id = "icon-shadow" > < / use >
< use href = "#logo-path" stroke = "url(#logo-gradient)" > < / use >
< / svg >
< / 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-15 16:12:14 -06:00
< section style = "position:absolute;height:100%;right:0" >
< button class = "no-bg theme-toggler js-only centerize" >
< svg class = "hide-in-light-theme" xmlns = "http://www.w3.org/2000/svg" height = "24" viewBox = "0 0 24 24" width = "24" > < path d = "M0 0h24v24H0V0z" fill = "none" / > < path style = "fill:var(--fg)" d = "M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zm-2 5.79V18h-3.52L12 20.48 9.52 18H6v-3.52L3.52 12 6 9.52V6h3.52L12 3.52 14.48 6H18v3.52L20.48 12 18 14.48zM12 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z" / > < / svg >
< svg class = "hide-in-dark-theme" xmlns = "http://www.w3.org/2000/svg" height = "24" viewBox = "0 0 24 24" width = "24" > < path d = "M0 0h24v24H0V0z" fill = "none" / > < path style = "stroke:var(--fg)" d = "M10 4c4.41 0 8 3.59 8 8s-3.59 8-8 8c-.34 0-.68-.02-1.01-.07C10.9 17.77 12 14.95 12 12s-1.1-5.77-3.01-7.93C9.32 4.02 9.66 4 10 4m0-2c-1.82 0-3.53.5-5 1.35C7.99 5.08 10 8.3 10 12s-2.01 6.92-5 8.65C6.47 21.5 8.18 22 10 22c5.52 0 10-4.48 10-10S15.52 2 10 2z" / > < / svg >
< / button >
< button class = "no-bg align-toggler js-only hidden-on-mobile centerize" >
< svg class = "hide-in-align-left" xmlns = "http://www.w3.org/2000/svg" enable-background = "new 0 0 24 24" height = "24" viewBox = "0 0 24 24" width = "24" > < rect fill = "none" height = "24" width = "24" / > < path style = "fill:var(--fg)" d = "M4,22H2V2h2V22z M22,7H6v3h16V7z M16,14H6v3h10V14z" / > < / svg >
< svg class = "hide-in-align-center" xmlns = "http://www.w3.org/2000/svg" height = "24" viewBox = "0 0 24 24" width = "24" > < path d = "M0 0h24v24H0z" fill = "none" / > < path style = "fill:var(--fg)" d = "M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z" / > < / svg >
< / button >
< / section >
2020-07-14 16:47:54 -05:00
< / header >
< main >
2020-07-14 17:52:42 -05:00
{{ block "main" . }}{{ .Content }}{{ end }}
2020-07-14 16:47:54 -05:00
< / main >
2020-07-29 13:20:11 -05:00
{{ block "body-end" . }}
< footer style = "padding-bottom: 5em" >
< / footer >
{{ end }}
2020-07-14 16:47:54 -05:00
< / body >
< / html >