github.io/layouts/_default/baseof.html
Sivert V. Sæther d21051adde Anotha lil dump
Think I'm finally finished fiddling with the devops stuff and ready to
finally focus on the content! 😁
2022-04-08 00:04:12 +00:00

64 lines
2.2 KiB
HTML

<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='robots' content='index,follow'>
{{ with resources.Get "favicon.ico" | resources.Fingerprint }}
<link rel='icon' href='{{ .RelPermalink }}' integrity='{{ .Data.Integrity }}' />
{{ end }}
{{ block "meta" . }}
<meta name='viewport' content='width=device-width,initial-scale=1.0'>
{{ end }}
<meta name='twitter:card' content='summary'>
<meta property='og:title' content='{{ site.Title }}' />
<meta property='og:url' content='{{ site.BaseURL }}' />
<meta property='og:site_name' content='{{ site.Title }}' />
<!-- <meta property='og:image' content=''> -->
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel='%s' type='%s' href='%s' title='%s' />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
<link rel='stylesheet' href='https://stackpath.bootstrapcdn.com/bootstrap/4.5.1/css/bootstrap.min.css' crossorigin='anonymous'>
{{ if isset .Params "title" }}
<title>{{ site.Title }} - {{ .Title }}</title>
{{ else }}
<title>{{ site.Title }}</title>
{{ end }}
{{ if .Description }}
<meta name='description' content='{{ .Description }}'>
{{ end }}
{{ block "head" . }}{{ end }}
{{ if .Param "chroma" }}
{{ with resources.Get "chroma.scss" | toCSS | postCSS | minify | fingerprint | resources.PostProcess }}
<link href='{{ .RelPermalink }}' integrity="{{ .Data.Integrity }}" rel='stylesheet'>
{{ end }}
{{ end }}
{{ with resources.Get "main.scss" | toCSS | postCSS | minify | fingerprint | resources.PostProcess }}
<link href='{{ .RelPermalink }}' integrity="{{ .Data.Integrity }}" rel='stylesheet'>
{{ end }}
</head>
<body>
<header>
{{ partial "nav.html" . }}
</header>
<div id='content'>
<main>
{{ if .Param "toc" }}
<div class='row'>
<div class='col-md-2'>
{{ partial "toc.html" . }}
</div>
<div class='col-md-10'>
{{ block "main" . }}{{ end }}
</div>
</div>
{{ else }}
{{ block "main" . }}{{ end }}
{{ end }}
</main>
</div>
<footer>
{{ partial "footer.html" . }}
</footer>
</body>
{{ block "bottom" . }}{{ end }}
</html>