trwnh.com/unified.test.hugo/layouts/_default/baseof.html

41 lines
1.5 KiB
HTML
Raw Permalink Normal View History

2024-10-05 06:27:07 +00:00
<!DOCTYPE html>
2024-10-16 07:34:56 +00:00
<html{{with (or .Language.Lang .Site.Language.Lang) }} lang="{{.}}"{{end}}>
{{- /* TODO: more precise type detection */}}
{{- $itemtype := "https://schema.org/WebPage"}}
{{- if isset .Params "date" }}
{{- $itemtype = "https://schema.org/Article"}}
{{- end }}
<head itemscope itemtype="{{$itemtype}}">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
2024-10-05 06:27:07 +00:00
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
2024-10-16 05:34:37 +00:00
<meta name="color-scheme" content="dark light" />{{/* TODO: make this configurable? */}}
{{ "<!-- styles and scripts -->" | safeHTML }}
{{- $screen := resources.Get "styles/screen.scss" | toCSS | minify | fingerprint }}
2024-10-05 06:27:07 +00:00
<link rel="stylesheet"
href="{{ $screen.Permalink }}"
integrity="{{ $screen.Data.Integrity }}"
media="screen" />
{{- $print := resources.Get "styles/print.scss" | toCSS | minify | fingerprint }}
2024-10-05 06:27:07 +00:00
<link rel="stylesheet"
href="{{ $print.Permalink }}"
integrity="{{ $print.Data.Integrity }}"
media="print" />
{{- $script := resources.Get "scripts/main.js" | js.Build "script.js" | minify | fingerprint }}
2024-10-05 06:27:07 +00:00
<script type="text/javascript"
src="{{ $script.Permalink }}"
integrity="{{ $script.Data.Integrity }}">
</script>
{{- partial "seo.html" . }}
{{- "<!-- add external icon to external links -->" | safeHTML }}
2024-10-05 06:27:07 +00:00
{{ partial "styles/external-links.html" . }}
{{- block "head" . }}
{{- end }}
2024-10-05 06:27:07 +00:00
</head>
{{- block "body" . }}
2024-10-05 06:27:07 +00:00
<body>
</body>
{{- end -}}
2024-10-05 06:27:07 +00:00
</html>