Skip to content
Snippets Groups Projects
Commit 3e665936 authored by Olivier Maury's avatar Olivier Maury
Browse files

Ajouter des entêtes HTML

parent 7df0a59c
No related branches found
No related tags found
1 merge request!15Ajouter des entêtes HTML
{{- $assetBusting := not .Site.Params.disableAssetsBusting }}
{{- $page := . }}
{{- $themevariants := slice | append (.Site.Params.themeVariant | default "auto" ) }}
{{- $assetBusting := not .Site.Params.disableAssetsBusting -}}
{{- $page := . -}}
{{- $themevariants := slice | append (.Site.Params.themeVariant | default "auto" ) -}}
<!DOCTYPE html>
<html lang="{{ .Page.Language | default " en" }}" dir="{{ T " Reading-direction" | default "ltr" }}">
<head>
{{- partial "meta.html" . }}
{{- partialCached "favicon.html" . }}
<link href="{{"css/fontawesome-all.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;">
<link href="{{"css/home.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
<link href="{{"css/fonts.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet" media="print" onload="this.media='all';this.onload=null;">
<title>{{ .Page.Title }}</title>
{{ with .OutputFormats.Get "rss" -}}
{{- printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML -}}
{{ end }}
<link rel="alternate" hreflang="fr" href="{{"fr" | relURL}}">
<link rel="alternate" hreflang="en" href="{{"en" | relURL}}">
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}">
<meta property="og:title" content="{{ .Site.Title }}">
<meta property="og:type" content="website">
<title>{{ .Site.Title }}</title>
<base href="{{ .Site.BaseURL }}">
{{- partialCached "favicon.html" . }}
<script>
const baseUriFull='{{ trim .Site.BaseURL "/" | safeJS }}/';
const localStorageThemeKey = baseUriFull + 'variant';
......
......@@ -16,4 +16,5 @@
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}">
{{- with .Site.Params.author }}
<meta name="author" content="{{ . }}">
{{- end }}
\ No newline at end of file
{{- end }}
<link rel="license" href="https://www.etalab.gouv.fr/licence-ouverte-open-licence/">
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment