website/layouts/partials/head.html

30 lines
1.1 KiB
HTML
Raw Normal View History

2023-01-23 10:07:18 +01:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
2024-05-17 20:35:54 +02:00
<meta name="description" content="{{ if page.Description }}{{ page.Description }}{{ else }}{{ site.Params.description }}{{ end }}">
2023-01-23 10:07:18 +01:00
{{- with .Site.Params.author -}}
<meta name="author" content="{{ . }}">
{{ end }}
2024-05-03 15:03:37 +02:00
{{/*- $title := partialCached "data/title" . .RelPermalink -*/}}
{{ $title := (printf "%s - %s" .Title .Site.Title) }}
2023-01-23 10:07:18 +01: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 }}
{{ with .Site.Params.favicon }}
2024-05-03 15:03:37 +02:00
<link rel="shortcut icon" href="{{ . }}" />
2023-01-23 10:07:18 +01:00
{{ end }}
<!-- 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 "scss/main.scss" | resources.ToCSS | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}">