github.io/layouts/_default/baseof.html

73 lines
2.5 KiB
HTML
Raw Permalink Normal View History

<!DOCTYPE html>
2022-08-18 13:41:11 +00:00
<html lang='{{ .Language.Lang }}'>
<head>
<meta charset='UTF-8'>
<meta name='robots' content='index,follow'>
2022-08-18 13:41:11 +00:00
{{ if isset .Params "title" }}
<title>{{ site.Title }} - {{ .Title }}</title>
{{ else }}
<title>{{ site.Title }}</title>
{{ end }}
{{ if .Description }}
<meta name='description' content='{{ .Description }}'>
{{ end }}
{{ with resources.Get "favicon.png" }}
{{ with . | fingerprint }}
<link rel='icon' href='{{ .RelPermalink }}' integrity='{{ .Data.Integrity }}' />
{{ end }}
{{ with .Resize "192x192 png" | fingerprint }}
<link rel="apple-touch-icon" href="{{ .RelPermalink }}" integrity='{{ .Data.Integrity }}' />
{{ end }}
{{ end }}
2022-08-18 13:41:11 +00:00
<meta name='viewport' content='width=device-width,initial-scale=1.0'>
<meta name="theme-color" content="#00FF00" />
{{ block "meta" . }}
{{ 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=''> -->
{{ hugo.Generator }}
{{ 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'>
{{ block "head" . }}{{ end }}
2022-03-30 15:06:21 +00:00
{{ if .Param "chroma" }}
{{ with resources.Get "chroma.scss" | toCSS | minify | fingerprint | resources.PostProcess }}
<link href='{{ .RelPermalink }}' integrity="{{ .Data.Integrity }}" rel='stylesheet'>
{{ end }}
{{ end }}
{{ with resources.Get "main.scss" | toCSS | minify | fingerprint | resources.PostProcess }}
<link href='{{ .RelPermalink }}' integrity="{{ .Data.Integrity }}" rel='stylesheet'>
2022-03-30 15:06:21 +00:00
{{ end }}
2023-01-03 18:13:59 +00:00
<script defer data-domain="io.sivert.pw" src="https://anal.42069.no/js/script.js"></script>
</head>
<body>
<header>
{{ partial "nav.html" . }}
</header>
<div id='content'>
2022-03-30 15:06:21 +00:00
<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 }}
2023-01-03 18:13:59 +00:00
</html>