2023-12-04 03:43:34 +00: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 }}
|
|
|
|
{{- partial "structured-data.html" . }}
|
|
|
|
{{- partial "favicons.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">
|
|
|
|
{{- block "head" . -}}{{- end }}
|
|
|
|
{{- range .Site.Params.customCSS }}
|
|
|
|
<link rel="stylesheet" href="{{ . | absURL }}">
|
|
|
|
{{- end }}
|
2023-12-06 03:42:08 +00:00
|
|
|
{{ if .IsTranslated }}
|
|
|
|
{{ range .Translations }}
|
|
|
|
<link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}" title="{{ .Language.LanguageName }}">
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2023-12-04 03:43:34 +00:00
|
|
|
{{- if templates.Exists "partials/extra-head.html" -}}
|
|
|
|
{{ partial "extra-head.html" . }}
|
|
|
|
{{- end }}
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body id="page">
|
2023-12-07 02:12:32 +00:00
|
|
|
<div id="spotlight">
|
|
|
|
<div id="home-center">
|
|
|
|
{{ block "header" . -}}{{ end -}}
|
|
|
|
{{ block "main" . -}}{{ end -}}
|
|
|
|
</div>
|
|
|
|
{{ block "footer" . -}}{{ end }}
|
|
|
|
</div>
|
2023-12-04 03:43:34 +00: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 -}}
|
|
|
|
<script src="{{ $script.Permalink }}" {{ printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }} crossorigin="anonymous"></script>
|
|
|
|
{{ else -}}
|
|
|
|
{{ $script := $main | minify | fingerprint -}}
|
|
|
|
<script src="{{ $script.Permalink }}" {{ printf "integrity=%q" $script.Data.Integrity | safeHTMLAttr }} crossorigin="anonymous"></script>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{- partial "analytics.html" . }}
|
|
|
|
{{- if templates.Exists "partials/extra-foot.html" -}}
|
|
|
|
{{ partial "extra-foot.html" . }}
|
|
|
|
{{- end }}
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|