erynwells.me/layouts/_default/baseof.html

37 lines
1.4 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="{{ site.LanguageCode }}">
{{ partial "head.html" . }}
2022-09-03 15:30:38 -07:00
<body>
{{ block "body" . }}
{{ block "header" . }}{{ end }}
<main class="{{ .Type }} {{ .Kind }}{{ if gt (len .Pages) 0 }} list{{ end }}">
2021-12-26 12:43:26 -07:00
{{ block "main" . }}{{ end }}
</main>
{{ partial "development/page_info.html" . }}
2022-09-03 15:30:38 -07:00
{{ 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 }}
2022-08-27 10:09:55 -07:00
{{ block "styles" . }}{{ end }}
2022-09-03 15:30:38 -07:00
{{ block "scripts" . }}{{ end }}
2022-08-27 10:09:55 -07:00
{{ $concatenatedSiteScript := resources.Get "scripts/site.js"
| resources.Fingerprint "sha512" }}
<script type="module" src="{{ $concatenatedSiteScript.Permalink }}" integrity="{{ $concatenatedSiteScript.Data.Integrity }}"></script>
</html>