2024-10-05 06:27:07 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="{{.Site.Language.Lang }}" xml:lang="{{.Site.Language.Lang }}">
|
2024-10-15 08:09:14 +00:00
|
|
|
{{- /* 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? */}}
|
2024-10-15 08:09:14 +00:00
|
|
|
{{ "<!-- 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" />
|
2024-10-15 08:09:14 +00:00
|
|
|
{{- $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" />
|
2024-10-15 08:09:14 +00:00
|
|
|
{{- $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>
|
2024-10-15 08:09:14 +00:00
|
|
|
{{- partial "seo.html" . }}
|
|
|
|
{{- "<!-- add external icon to external links -->" | safeHTML }}
|
2024-10-05 06:27:07 +00:00
|
|
|
{{ partial "styles/external-links.html" . }}
|
2024-10-15 08:09:14 +00:00
|
|
|
{{- block "head" . }}
|
|
|
|
{{- end }}
|
2024-10-05 06:27:07 +00:00
|
|
|
</head>
|
2024-10-15 08:09:14 +00:00
|
|
|
{{- block "body" . }}
|
2024-10-05 06:27:07 +00:00
|
|
|
<body>
|
|
|
|
|
|
|
|
</body>
|
2024-10-15 08:09:14 +00:00
|
|
|
{{- end -}}
|
2024-10-05 06:27:07 +00:00
|
|
|
</html>
|