2021-08-11 05:28:33 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
2022-01-11 01:00:27 +00:00
|
|
|
{{ with .Site.Language.Params.htmlCode | default .Site.LanguageCode }}
|
2021-08-11 05:28:33 +00:00
|
|
|
<meta http-equiv="content-language" content="{{ . }}" />
|
|
|
|
{{ end }}
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
|
|
|
{{/* Title */}}
|
|
|
|
{{ if .IsHome -}}
|
|
|
|
<title>{{ .Site.Title }}</title>
|
|
|
|
<meta name="title" content="{{ .Site.Title }}" />
|
|
|
|
{{- else -}}
|
|
|
|
<title>{{ .Title }} · {{ .Site.Title }}</title>
|
|
|
|
<meta name="title" content="{{ .Title }} · {{ .Site.Title }}" />
|
|
|
|
{{- end }}
|
|
|
|
{{/* Metadata */}}
|
|
|
|
{{ with .Params.Description -}}
|
|
|
|
<meta name="description" content="{{ . }}" />
|
|
|
|
{{- else -}}
|
|
|
|
<meta name="description" content="{{ $.Site.Params.Description }}" />
|
|
|
|
{{- end }}
|
|
|
|
{{ with .Site.Params.keywords -}}
|
|
|
|
<meta name="keywords" content="{{ . }}" />
|
|
|
|
{{- end }}
|
2021-08-26 00:07:37 +00:00
|
|
|
{{ with .Site.Params.robots }}
|
|
|
|
<meta name="robots" content="{{ . }}" />
|
|
|
|
{{ end }}
|
|
|
|
{{ with .Params.robots }}
|
|
|
|
<meta name="robots" content="{{ . }}" />
|
|
|
|
{{ end }}
|
2021-08-11 05:28:33 +00:00
|
|
|
<link rel="canonical" href="{{ .Permalink }}" />
|
2021-08-14 03:54:17 +00:00
|
|
|
{{ range .AlternativeOutputFormats -}}
|
2021-08-25 23:44:41 +00:00
|
|
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
|
2021-08-14 03:54:17 +00:00
|
|
|
{{ end -}}
|
2021-08-11 05:28:33 +00:00
|
|
|
{{/* Styles */}}
|
2021-08-21 02:20:29 +00:00
|
|
|
{{ $schemeCSS := resources.Get (printf "css/schemes/%s.css" (.Site.Params.colorScheme | default "congo")) }}
|
|
|
|
{{ if not $schemeCSS }}
|
|
|
|
{{ $schemeCSS = resources.Get "css/schemes/congo.css" }}
|
|
|
|
{{ end }}
|
|
|
|
{{ $schemeStyles := $schemeCSS | resources.Minify | resources.Fingerprint "sha512" }}
|
|
|
|
<link
|
|
|
|
type="text/css"
|
|
|
|
rel="stylesheet"
|
2021-08-25 23:44:41 +00:00
|
|
|
href="{{ $schemeStyles.RelPermalink }}"
|
2021-08-21 02:20:29 +00:00
|
|
|
integrity="{{ $schemeStyles.Data.Integrity }}"
|
|
|
|
/>
|
|
|
|
{{ $mainCSS := resources.Get "css/compiled/main.css" }}
|
|
|
|
{{ $mainStyles := $mainCSS | resources.Minify | resources.Fingerprint "sha512" }}
|
|
|
|
<link
|
|
|
|
type="text/css"
|
|
|
|
rel="stylesheet"
|
2021-08-25 23:44:41 +00:00
|
|
|
href="{{ $mainStyles.RelPermalink }}"
|
2021-08-21 02:20:29 +00:00
|
|
|
integrity="{{ $mainStyles.Data.Integrity }}"
|
|
|
|
/>
|
|
|
|
{{ $customCSS := resources.Get "css/custom.css" }}
|
|
|
|
{{ if $customCSS }}
|
|
|
|
{{ $customStyles := $customCSS | resources.Minify | resources.Fingerprint "sha512" }}
|
|
|
|
<link
|
|
|
|
type="text/css"
|
|
|
|
rel="stylesheet"
|
2021-08-25 23:44:41 +00:00
|
|
|
href="{{ $customStyles.RelPermalink }}"
|
2021-08-21 02:20:29 +00:00
|
|
|
integrity="{{ $customStyles.Data.Integrity }}"
|
|
|
|
/>
|
2021-08-20 07:02:08 +00:00
|
|
|
{{ end }}
|
2021-10-29 01:07:21 +00:00
|
|
|
{{ if eq (.Site.Params.darkMode | default "auto") "auto" }}
|
2022-01-11 23:15:41 +00:00
|
|
|
{{ $darkJS := resources.Get "js/dark.js" }}
|
|
|
|
{{ $darkJS := $darkJS | resources.Minify | resources.Fingerprint "sha512" }}
|
|
|
|
<script type="text/javascript" src="{{ $darkJS.RelPermalink }}" integrity="{{ $darkJS.Data.Integrity }}"></script>
|
2021-10-29 01:07:21 +00:00
|
|
|
{{ end }}
|
2021-08-11 05:28:33 +00:00
|
|
|
{{/* Icons */}}
|
2021-08-14 00:47:33 +00:00
|
|
|
{{ if templates.Exists "partials/favicons.html" }}
|
|
|
|
{{ partialCached "favicons.html" .Site }}
|
|
|
|
{{ else }}
|
2021-08-25 23:44:41 +00:00
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ "apple-touch-icon.png" | relURL }}" />
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="{{ "favicon-32x32.png" | relURL }}" />
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="{{ "favicon-16x16.png" | relURL }}" />
|
|
|
|
<link rel="manifest" href="{{ "site.webmanifest" | relURL }}" />
|
2021-08-14 00:47:33 +00:00
|
|
|
{{ end }}
|
2021-08-11 05:28:33 +00:00
|
|
|
{{/* Site Verification */}}
|
|
|
|
{{ with .Site.Params.verification.google }}
|
|
|
|
<meta name="google-site-verification" content="{{ . }}" />
|
|
|
|
{{ end }}
|
|
|
|
{{ with .Site.Params.verification.bing }}
|
|
|
|
<meta name="msvalidate.01" content="{{ . }}" />
|
|
|
|
{{ end }}
|
|
|
|
{{ with .Site.Params.verification.pinterest }}
|
|
|
|
<meta name="p:domain_verify" content="{{ . }}" />
|
|
|
|
{{ end }}
|
|
|
|
{{ with .Site.Params.verification.yandex }}
|
|
|
|
<meta name="yandex-verification" content="{{ . }}" />
|
|
|
|
{{ end }}
|
|
|
|
{{/* Social */}}
|
|
|
|
{{ template "_internal/opengraph.html" . }}
|
|
|
|
{{ template "_internal/twitter_cards.html" . }}
|
2021-08-16 07:06:59 +00:00
|
|
|
{{/* Schema */}}
|
2021-08-18 07:06:14 +00:00
|
|
|
{{ partial "schema.html" . }}
|
2021-08-11 05:28:33 +00:00
|
|
|
{{/* Generator */}}
|
2021-08-16 07:06:59 +00:00
|
|
|
{{ if .Site.Params.attribution | default true }}
|
|
|
|
{{ hugo.Generator }}
|
|
|
|
{{ end }}
|
2021-08-11 05:28:33 +00:00
|
|
|
{{/* Me */}}
|
|
|
|
{{ with .Site.Author.name }}<meta name="author" content="{{ . }}" />{{ end }}
|
2021-08-13 06:35:32 +00:00
|
|
|
{{ with .Site.Author.links }}
|
|
|
|
{{ range $links := . }}
|
|
|
|
{{ range $name, $url := $links }}<link href="{{ $url }}" rel="me" />{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2021-11-03 05:52:40 +00:00
|
|
|
{{/* Vendor */}}
|
|
|
|
{{ partial "vendor.html" . }}
|
2021-08-11 05:28:33 +00:00
|
|
|
{{/* Analytics */}}
|
|
|
|
{{ partialCached "analytics.html" .Site }}
|
|
|
|
{{/* Extend head - eg. for custom analytics scripts, etc. */}}
|
|
|
|
{{ if templates.Exists "partials/extend-head.html" }}
|
|
|
|
{{ partialCached "extend-head.html" .Site }}
|
|
|
|
{{ end }}
|
|
|
|
</head>
|