diff --git a/themes/hugo-theme-relearn/layouts/home/index.html b/themes/hugo-theme-relearn/layouts/home/index.html index 826359c55ff03248789a50aa2601d2352823b5cf..32eff681263188cb7529a6f457ceedd36df79909 100644 --- a/themes/hugo-theme-relearn/layouts/home/index.html +++ b/themes/hugo-theme-relearn/layouts/home/index.html @@ -1,16 +1,24 @@ -{{- $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'; diff --git a/themes/hugo-theme-relearn/layouts/partials/meta.html b/themes/hugo-theme-relearn/layouts/partials/meta.html index cffe51cdcdc2ddb7e6a06f820734b8b524823eab..cda8264083bb4fd0f4fd7852ff7653af4a236e5e 100644 --- a/themes/hugo-theme-relearn/layouts/partials/meta.html +++ b/themes/hugo-theme-relearn/layouts/partials/meta.html @@ -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