website/layouts/partials/head.html

30 lines
1.1 KiB
HTML
Raw Permalink Normal View History

2022-12-10 10:37:36 +00:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{- $description := partialCached "data/description" . .RelPermalink -}}
<meta name="description" content="{{ $description }}">
{{- with .Site.Params.author -}}
<meta name="author" content="{{ . }}">
{{ end }}
2023-11-01 16:07:15 +00:00
{{ $title := partialCached "data/title" . .RelPermalink }}
2022-12-10 10:37:36 +00:00
<title>{{ $title }}</title>
<link rel="canonical" href="{{ .Permalink }}">
{{ partial "opengraph/include.html" . }}
{{ range .AlternativeOutputFormats }}
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
{{ end }}
2023-11-01 16:07:15 +00:00
<link rel="shortcut icon" type="image/png" href="/favicon_md.png">
<link rel="shortcut icon" sizes="192x192" href="/favicon_md.png">
<link rel="apple-touch-icon" href="/favicon_md.png">
2022-12-10 10:37:36 +00:00
<!-- Note: j'ai galérer à rajouter du scss car en fait y'avait déja une variable $style de définit plus haut... -->
{{ $style := resources.Get "sass/main.scss" | resources.ToCSS | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}">