51 lines
1.6 KiB
HTML
51 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="{{ site.LanguageCode }}">
|
|
{{ partial "head.html" . }}
|
|
|
|
<body>
|
|
{{ block "body" . }}
|
|
{{ block "header" . }}{{ end }}
|
|
<main class="{{ .Type }}">
|
|
{{ block "main" . }}{{ end }}
|
|
</main>
|
|
{{ partial "development/page_info.html" . }}
|
|
{{ block "footer" . }}{{ end }}
|
|
{{ end }}
|
|
</body>
|
|
|
|
<style>
|
|
@font-face {
|
|
font-family: "Museo_Slab";
|
|
src: url("{{ `/fonts/Museo_Slab_500.woff2` | absURL }}") format("woff2"),
|
|
url("{{ `/fonts/Museo_Slab_500.woff` | absURL }}") format("woff");
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
</style>
|
|
<link rel="stylesheet" as="style" href="{{ `/styles/reset.css` | absURL }}">
|
|
<link rel="stylesheet" as="style" href="{{ `/styles/root.css` | absURL }}">
|
|
{{ if not hugo.IsProduction }}
|
|
<link rel="stylesheet" as="style" href="/styles/development.css">
|
|
{{ end }}
|
|
{{ block "styles" . }}{{ end }}
|
|
|
|
{{- $includedCSS := slice -}}
|
|
{{- if not .FirstSection.IsHome -}}
|
|
{{- range .FirstSection.Resources.Match "*.css" -}}
|
|
{{- if not (in $includedCSS .Permalink) -}}
|
|
{{- $includedCSS = $includedCSS | append .Permalink -}}
|
|
<link rel="stylesheet" as="style" href="{{ .Permalink }}">
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- range .Resources.Match "*.css" -}}
|
|
{{- if not (in $includedCSS .Permalink) -}}
|
|
{{- $includedCSS = $includedCSS | append .Permalink -}}
|
|
<link rel="stylesheet" as="style" href="{{ .Permalink }}">
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{ block "scripts" . }}{{ end }}
|
|
|
|
<script src="{{ `scripts/site.js` | absURL }}"></script>
|
|
</html>
|