2023-03-13 18:00:00 +01:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
{{ with .Description }}
|
|
|
|
<meta name="description" content="{{ . }}" />
|
|
|
|
{{ else }}
|
|
|
|
{{ if .IsPage }}
|
|
|
|
<meta name="description" content="{{ .Summary }}" />
|
|
|
|
{{ else }}
|
|
|
|
{{ with site.Params.description }}
|
|
|
|
<meta name="description" content="{{ . }}" />
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<title>
|
|
|
|
{{- if eq .Title site.Title -}}
|
|
|
|
{{ site.Title }}
|
|
|
|
{{- else -}}
|
|
|
|
{{ with .Title }}{{ . }} | {{ end }}{{ site.Title }}
|
|
|
|
{{- end -}}
|
|
|
|
</title>
|
|
|
|
|
|
|
|
<link rel="canonical" href="{{ .Permalink }}" />
|
|
|
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
|
|
|
|
|
|
|
{{ range .AlternativeOutputFormats }}
|
|
|
|
{{ printf "<link rel=%q type=%q href=%q title=%q />" .Rel .MediaType .Permalink site.Title | safeHTML }}
|
|
|
|
{{ end }}
|
|
|
|
|
2023-06-24 19:00:00 +02:00
|
|
|
{{ $scss_options := dict "transpiler" "dartsass" }}
|
|
|
|
{{ with resources.Get "css/main.tpl.scss" | resources.ExecuteAsTemplate "css/main.scss" . | resources.ToCSS $scss_options | minify | fingerprint }}
|
|
|
|
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" />
|
|
|
|
{{ end }}
|
2023-03-13 18:00:00 +01:00
|
|
|
|
|
|
|
{{ with .Params.css }}
|
2023-06-24 19:00:00 +02:00
|
|
|
{{ with resources.GetMatch (.) | minify | fingerprint }}
|
|
|
|
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" />
|
|
|
|
{{ end }}
|
2023-03-13 18:00:00 +01:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{/*
|
|
|
|
https://developer.mozilla.org/en-US/docs/Web/Performance/Lazy_loading#fonts
|
|
|
|
NOTE: fonts/ directory is symlinked from static/ to assets/ to make the .Resources.Match work
|
|
|
|
*/}}
|
2023-03-13 18:00:00 +01:00
|
|
|
{{ range resources.Match "/fonts/iosevka-aile*.woff2" }}
|
2023-03-13 18:00:00 +01:00
|
|
|
<link rel="preload" href="{{ . | relURL }}" as="font" type="font/woff2" crossorigin="anonymous" />
|
|
|
|
{{ end }}
|
|
|
|
</head>
|