2018-10-23 01:15:50 -04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="{{.Site.LanguageCode}}">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
|
|
{{- with .Site.Params.themeColor }}
|
|
|
|
<meta name="theme-color" content="{{.}}">
|
|
|
|
<meta name="msapplication-TileColor" content="{{.}}">
|
|
|
|
{{- end }}
|
2019-02-01 05:14:07 -05:00
|
|
|
{{- partial "structured-data.html" . }}
|
2018-12-31 04:09:40 -05:00
|
|
|
{{- partial "favicons.html" }}
|
2018-10-23 01:15:50 -04:00
|
|
|
<title>{{.Title}}</title>
|
|
|
|
{{ range .AlternativeOutputFormats -}}
|
2019-10-27 06:23:28 -04:00
|
|
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Title | safeHTML }}
|
2018-10-23 01:15:50 -04:00
|
|
|
{{ end -}}
|
|
|
|
{{ $style := resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "css/style.css" . | toCSS | minify | fingerprint -}}
|
2019-08-18 08:38:40 -04:00
|
|
|
<link rel="stylesheet" href="{{ $style.Permalink }}" {{ printf "integrity=%q" $style.Data.Integrity | safeHTMLAttr }} crossorigin="anonymous">
|
2018-12-31 04:09:40 -05:00
|
|
|
{{- block "head" . -}}{{- end }}
|
|
|
|
{{- if templates.Exists "partials/extra-head.html" -}}
|
|
|
|
{{ partial "extra-head.html" . }}
|
2018-12-31 03:08:22 -05:00
|
|
|
{{- end }}
|
2018-10-23 01:15:50 -04:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body id="page">
|
|
|
|
{{ block "header" . -}}{{ end -}}
|
|
|
|
{{ block "main" . -}}{{ end -}}
|
|
|
|
{{ block "footer" . -}}{{ end }}
|
2023-08-06 09:16:12 -04:00
|
|
|
{{ partial "scroll-to-top.html" . }}
|
2019-08-18 10:27:31 -04:00
|
|
|
{{ $main := resources.Get "js/main.js" -}}
|
|
|
|
{{ if .Site.Params.code_copy_button | default true -}}
|
|
|
|
{{ $codeCopy := resources.Get "js/code-copy.js" -}}
|
|
|
|
{{ $script := slice $main $codeCopy | resources.Concat "js/bundle.js" | minify | fingerprint -}}
|
2023-08-19 03:24:17 -04:00
|
|
|
<script async src="{{ $script.Permalink }}" {{ printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }} crossorigin="anonymous"></script>
|
2019-08-18 10:27:31 -04:00
|
|
|
{{ else -}}
|
|
|
|
{{ $script := $main | minify | fingerprint -}}
|
2023-08-19 03:24:17 -04:00
|
|
|
<script async src="{{ $script.Permalink }}" {{ printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }} crossorigin="anonymous"></script>
|
2019-08-18 10:27:31 -04:00
|
|
|
{{ end }}
|
2023-08-19 03:24:17 -04:00
|
|
|
{{ partial "mathjax.html" . }}
|
2019-01-09 23:12:58 -05:00
|
|
|
{{- partial "analytics.html" . }}
|
2018-12-31 04:09:40 -05:00
|
|
|
{{- if templates.Exists "partials/extra-foot.html" -}}
|
|
|
|
{{ partial "extra-foot.html" . }}
|
|
|
|
{{- end }}
|
2018-10-23 01:15:50 -04:00
|
|
|
</body>
|
|
|
|
|
2018-12-11 11:02:36 -05:00
|
|
|
</html>
|