36 lines
1.4 KiB
HTML
36 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="{{ site.LanguageCode }}">
|
|
{{ partial "head.html" . }}
|
|
|
|
<body>
|
|
{{ block "body" . }}
|
|
{{ block "header" . }}{{ end }}
|
|
<main class="{{ .Type }} {{ .Kind }}{{ if gt (len .Pages) 0 }} list{{ end }}">
|
|
{{ block "main" . }}{{ end }}
|
|
</main>
|
|
{{ partial "development/page_info.html" . }}
|
|
{{ block "footer" . }}{{ end }}
|
|
{{ end }}
|
|
</body>
|
|
|
|
{{- $rootCSS := resources.Get "styles/root.css"
|
|
| resources.ExecuteAsTemplate "root.css" .
|
|
| resources.Fingerprint "sha512" -}}
|
|
<link rel="stylesheet" as="style" href="{{ $rootCSS.RelPermalink }}" integrity="{{ $rootCSS.Data.Integrity }}">
|
|
{{ if not hugo.IsProduction }}
|
|
<link rel="stylesheet" as="style" href="{{ `/styles/development.css` | relURL }}">
|
|
{{ end }}
|
|
{{ with partial "secure_asset.html" (printf "styles/%s.css" .Section) }}
|
|
<link rel="stylesheet" as="style" href="{{ .Secure.RelPermalink }}" integrity="{{ .Secure.Data.Integrity }}">
|
|
{{ end }}
|
|
{{ range .Resources.Match "*.css" }}
|
|
<link rel="stylesheet" as="style" href="{{ .RelPermalink }}">
|
|
{{ end }}
|
|
|
|
{{ block "styles" . }}{{ end }}
|
|
{{ block "scripts" . }}{{ end }}
|
|
|
|
{{ $concatenatedSiteScript := resources.Get "scripts/site.js"
|
|
| resources.Fingerprint "sha512" }}
|
|
<script type="module" src="{{ $concatenatedSiteScript.Permalink }}" integrity="{{ $concatenatedSiteScript.Data.Integrity }}"></script>
|
|
</html>
|