1.8 KiB
1.8 KiB
<head>
{{ with .Description }}
{{ else }}
{{ if .IsPage }}
{{ else }}
{{ with site.Params.description }}
{{ end }}
{{ end }}
{{ end }}
{{ range .AlternativeOutputFormats }}
{{ printf "" .Rel .MediaType .Permalink site.Title | safeHTML }}
{{ end }}
{{ $scss_options := dict "transpiler" "dartsass" }}
{{ with resources.Get "css/main.tpl.scss" | resources.ExecuteAsTemplate "css/main.scss" . | resources.ToCSS $scss_options | minify | fingerprint }}
{{ end }}
{{ with .Params.css }}
{{ with resources.GetMatch (.) | minify | fingerprint }}
{{ end }}
{{ 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
*/}}
{{ range resources.Match "/fonts/iosevka-aile*.woff2" }}
{{ end }}
</head>