2020-08-31 13:40:11 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="X-Clacks-Overhead" content="GNU Terry Pratchett" />
|
|
|
|
<meta charset="utf-8">
|
2020-10-02 13:57:36 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
2020-08-31 13:40:11 +00:00
|
|
|
{{- partial "favicon.html" . -}}
|
|
|
|
<title>{{- block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{- end }}</title>
|
|
|
|
|
|
|
|
{{- partial "seo_tags.html" . -}}
|
|
|
|
<meta name="referrer" content="no-referrer-when-downgrade" />
|
|
|
|
|
|
|
|
{{ with .OutputFormats.Get "rss" -}}
|
|
|
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
|
|
|
{{ end -}}
|
|
|
|
|
2024-03-10 06:18:57 +00:00
|
|
|
<!-- External Script, Stylesheet linking -->
|
2024-03-10 04:47:53 +00:00
|
|
|
{{- /* CSS stylesheet */}}
|
2024-03-13 19:46:45 +00:00
|
|
|
{{- $stylesheet := (resources.Get "css/style.css") | resources.Minify }}
|
2024-03-10 06:18:57 +00:00
|
|
|
{{- if not site.Params.assets.disableFingerprinting }}
|
|
|
|
{{- $stylesheet := $stylesheet | fingerprint }}
|
|
|
|
<link crossorigin="anonymous" href="{{ $stylesheet.RelPermalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="preload stylesheet" as="style">
|
|
|
|
{{ else }}
|
|
|
|
<link crossorigin="anonymous" href="{{ $stylesheet.RelPermalink }}" rel="preload stylesheet" as="style">
|
|
|
|
{{ end }}
|
2024-03-10 04:47:53 +00:00
|
|
|
|
2020-08-31 13:40:11 +00:00
|
|
|
<!-- A partial to be overwritten by the user.
|
|
|
|
Simply place a custom_head.html into
|
|
|
|
your local /layouts/partials-directory -->
|
|
|
|
{{- partial "custom_head.html" . -}}
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2024-03-13 19:46:45 +00:00
|
|
|
|
2024-03-13 20:26:50 +00:00
|
|
|
{{- /* Darkmode Javascript */}}
|
|
|
|
{{- $darkmode_script := (resources.Get "js/darkmode.js") }}
|
|
|
|
{{- $darkmode_load_script := (resources.Get "js/darkmode_load.js") }}
|
|
|
|
{{- $darkmode_combined := slice $darkmode_script $darkmode_load_script | resources.Concat "js/darkmode.js" | resources.Minify }}
|
|
|
|
{{- if not site.Params.assets.disableFingerprinting }}
|
|
|
|
{{- $darkmode_combined := $darkmode_combined | fingerprint }}
|
|
|
|
<script crossorigin="anonymous" src="{{ $darkmode_combined.RelPermalink }}" integrity="{{ $darkmode_combined.Data.Integrity }}"></script>
|
|
|
|
{{ else }}
|
|
|
|
<script crossorigin="anonymous" src="{{ $darkmode_combined.RelPermalink }}"></script>
|
|
|
|
{{ end }}
|
|
|
|
|
2020-08-31 13:40:11 +00:00
|
|
|
<header>
|
|
|
|
{{- partial "header.html" . -}}
|
|
|
|
</header>
|
|
|
|
<main>
|
|
|
|
{{- block "main" . }}{{- end }}
|
|
|
|
</main>
|
|
|
|
<footer>
|
|
|
|
{{- partial "footer.html" . -}}
|
2024-03-10 07:33:56 +00:00
|
|
|
|
|
|
|
<!-- A partial to be overwritten by the user.
|
|
|
|
Simply place a custom_footer.html into
|
|
|
|
your local /layouts/partials-directory -->
|
|
|
|
{{- partial "custom_footer.html" -}}
|
2020-08-31 13:40:11 +00:00
|
|
|
</footer>
|
|
|
|
|
|
|
|
<!-- A partial to be overwritten by the user.
|
|
|
|
Simply place a custom_body.html into
|
|
|
|
your local /layouts/partials-directory -->
|
|
|
|
{{- partial "custom_body.html" . -}}
|
2024-03-14 05:10:38 +00:00
|
|
|
|
|
|
|
{{- /* Onclick Javascript */}}
|
|
|
|
{{- $darkmode_onclick := (resources.Get "js/darkmode_click.js") | resources.Minify }}
|
|
|
|
{{- if not site.Params.assets.disableFingerprinting }}
|
|
|
|
{{- $darkmode_onclick := $darkmode_onclick | fingerprint }}
|
|
|
|
<script crossorigin="anonymous" src="{{ $darkmode_onclick.RelPermalink }}" integrity="{{ $darkmode_onclick.Data.Integrity }}"></script>
|
|
|
|
{{ else }}
|
|
|
|
<script crossorigin="anonymous" src="{{ $darkmode_onclick.RelPermalink }}"></script>
|
|
|
|
{{ end }}
|
2020-08-31 13:40:11 +00:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|