Files
alexis.lahouze.org/layouts/_partials/head.html
T
2026-04-03 14:51:21 +02:00

73 lines
2.0 KiB
HTML

<meta charset="utf-8">
<meta name="generator" content="Hugo {{ hugo.Version }}">
{{ with .OutputFormats.Get "rss" }}
<link rel="{{ .Rel }}" {{ printf "type=%q" .MediaType.Type | safeHTMLAttr }} href="{{ .Permalink }}" title="{{ site.Title }}" />
{{ end }}
<style>
{{ with resources.Get "fonts/IosevkaTermSS04-Regular.woff2" }}
@font-face {
font-family: "Iosevka";
src:
url("{{ .RelPermalink }}") format('woff2'),
local("Courier New");
}
{{ end }}
{{ with resources.Get "fonts/IosevkaTermSS04-Italic.woff2" }}
@font-face {
font-family: "Iosevka";
font-style: italic;
src:
url("{{ .RelPermalink }}") format('woff2'),
local("Courier New");
}
{{ end }}
{{ with resources.Get "fonts/IosevkaTermSS04-Bold.woff2" }}
@font-face {
font-family: "Iosevka";
font-weight: bold;
src:
url("{{ .RelPermalink }}") format('woff2'),
local("Courier New");
}
{{ end }}
{{ with resources.Get "fonts/IosevkaTermSS04-BoldItalic.woff2" }}
@font-face {
font-family: "Iosevka";
font-style: italic;
font-weight: bold;
src:
url("{{ .RelPermalink }}") format('woff2'),
local("Courier New");
}
{{ end }}
</style>
{{ range resources.Match "style/*.scss" }}
{{ with . | toCSS }}
{{ with cond hugo.IsDevelopment . (. | minify | fingerprint) }}
<link rel="preload" href="{{ .RelPermalink }}" as="style">
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{ end }}
{{ end }}
{{ end }}
{{ with resources.Get "favicon.png" }}
{{ with .Resize "180x" }}
<link rel="apple-touch-icon" sizes="{{ .Width }}x{{ .Height }}" href="{{ .RelPermalink }}">
{{ end }}
{{ $res := . }}
{{ range (slice "256" "128" "96" "64" "48" "32" "16") }}
{{ with $res.Resize (print . "x") }}
<link rel="icon" type="image/png" sizes="{{ .Width }}x{{ .Height }}" href="{{ .RelPermalink }}">
{{ end }}
{{ end }}
{{ end }}
<title>{{ block "title" . }}{{ .Site.Title }} - {{ .Title }}{{ end }}</title>
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}