41 lines
No EOL
1.5 KiB
HTML
41 lines
No EOL
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<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" />
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
<meta name="color-scheme" content="dark light" />{{/* TODO: make this configurable? */}}
|
|
{{ "<!-- styles and scripts -->" | safeHTML }}
|
|
{{- $screen := resources.Get "styles/screen.scss" | toCSS | minify | fingerprint }}
|
|
<link rel="stylesheet"
|
|
href="{{ $screen.Permalink }}"
|
|
integrity="{{ $screen.Data.Integrity }}"
|
|
media="screen" />
|
|
{{- $print := resources.Get "styles/print.scss" | toCSS | minify | fingerprint }}
|
|
<link rel="stylesheet"
|
|
href="{{ $print.Permalink }}"
|
|
integrity="{{ $print.Data.Integrity }}"
|
|
media="print" />
|
|
{{- $script := resources.Get "scripts/main.js" | js.Build "script.js" | minify | fingerprint }}
|
|
<script type="text/javascript"
|
|
src="{{ $script.Permalink }}"
|
|
integrity="{{ $script.Data.Integrity }}">
|
|
</script>
|
|
{{- partial "seo.html" . }}
|
|
{{- "<!-- add external icon to external links -->" | safeHTML }}
|
|
{{ partial "styles/external-links.html" . }}
|
|
{{- block "head" . }}
|
|
{{- end }}
|
|
</head>
|
|
{{- block "body" . }}
|
|
<body>
|
|
|
|
</body>
|
|
{{- end -}}
|
|
</html> |