39 lines
2.2 KiB
HTML
39 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="{{.Site.LanguageCode}}">
|
|
<head>
|
|
{{- partial "analytics.html" . -}}
|
|
{{- partial "site-meta.html" -}}
|
|
{{- partial "structured-data.html" . -}}
|
|
<title>{{.Title}}</title>
|
|
{{ range .AlternativeOutputFormats -}}
|
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Title | safeHTML }}
|
|
{{ end -}}
|
|
{{ $style := resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "css/style.css" . | toCSS | minify | fingerprint -}}
|
|
<link rel="stylesheet" href="{{ $style.Permalink }}" {{ printf "integrity=%q" $style.Data.Integrity | safeHTMLAttr }} crossorigin="anonymous">
|
|
{{- range .Params.custom_css -}}<link rel="stylesheet" href="{{ . | absURL }}">{{- end -}}
|
|
{{- block "head" . -}}{{- end -}}
|
|
{{- if templates.Exists "partials/extra-head.html" -}}{{- partial "extra-head.html" . -}}{{- end -}}</head>
|
|
<body id="page">
|
|
{{- block "header" . -}}{{ end -}}
|
|
{{- block "main" . -}}{{ end -}}
|
|
{{- block "footer" . -}}{{ end }}
|
|
{{- partial "scroll-to-top.html" . }}
|
|
{{- $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 -}}
|
|
<script async src="{{ $script.Permalink }}" {{ printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }} crossorigin="anonymous"></script>
|
|
{{- else -}}
|
|
{{ $script := $main | minify | fingerprint -}}
|
|
<script async src="{{ $script.Permalink }}" {{ printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }} crossorigin="anonymous"></script>
|
|
{{- end -}}
|
|
{{- if and (not (eq .Site.Params.shareSocial nil)) (.Site.Params.shareSocial) -}}
|
|
{{ $linkshare := resources.Get "js/link-share.js" | minify | fingerprint -}}
|
|
<script async src="{{ $linkshare.Permalink }}" {{ printf "integrity=%q" $linkshare.Data.Integrity | safeHTMLAttr }} crossorigin="anonymous"></script>
|
|
{{- end -}}
|
|
{{- range .Params.custom_js -}}<script type="text/javascript" src="{{ . | absURL }}"></script>{{- end }}
|
|
{{- partial "mathjax.html" . -}}
|
|
{{- if templates.Exists "partials/extra-foot.html" -}}{{- partial "extra-foot.html" . -}}{{- end }}
|
|
</body>
|
|
|
|
</html>
|