vmems-website/layouts/partials/head.html

42 lines
1.6 KiB
HTML
Raw Permalink Normal View History

2023-10-28 08:20:52 +00:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
2024-09-03 21:59:29 +00:00
{{- $title := partialCached "data/title" . .RelPermalink -}}
<title>{{ $title }} {{ if not .IsHome }}- VMEMS{{ end }}</title>
2023-10-28 08:20:52 +00:00
{{- $description := partialCached "data/description" . .RelPermalink -}}
<meta name="description" content="{{ $description }}">
{{- with .Site.Params.author -}}
<meta name="author" content="{{ . }}">
{{ end }}
2024-09-03 21:59:29 +00:00
{{ if .IsPage }}
{{- with .Params.tags -}}
<meta name="keywords" content="{{ range $i, $e := . }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}">
{{ end }}
{{- end -}}
2023-10-28 08:20:52 +00:00
<link rel="canonical" href="{{ .Permalink }}">
2024-09-03 21:59:29 +00:00
{{- partial "metas/opengraph.html" . -}}
{{- partial "metas/json-ld.html" . -}}
2023-10-28 08:20:52 +00:00
2024-09-03 21:59:29 +00:00
{{- range .AlternativeOutputFormats -}}
2023-10-28 08:20:52 +00:00
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
{{ end }}
2024-08-27 11:11:22 +00:00
{{ $faviconSm := resources.Get "images/logos/logo_sm.png" }}
<link rel="apple-touch-icon" sizes="192x192" href="{{ $faviconSm.RelPermalink }}">
<link rel="icon" type="image/png" sizes="192x192" href="{{ $faviconSm.RelPermalink }}">
2023-10-28 08:20:52 +00:00
<link rel="manifest" href="/manifest.json">
<meta name="msapplication-TileColor" content="#198754">
2024-08-27 11:11:22 +00:00
<meta name="msapplication-TileImage" content="{{ $faviconSm.RelPermalink }}">
<meta name="theme-color" content="#198754">
2023-10-28 08:20:52 +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... -->
2024-09-03 21:59:29 +00:00
{{- $style := resources.Get "sass/main.scss" | resources.ToCSS | resources.Fingerprint -}}
2023-10-28 08:20:52 +00:00
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}">
<meta name="htmx-config" content='{"selfRequestsOnly":false}'>