{{ define "main" -}}
{{ partial "post/info.html" . }} {{ partial "post/i18nlist.html" . }} {{ if .Params.original }}

ℹ️ Info

{{ $original := .Page.GetPage .Params.original }}

{{ $lastmodDate := .Lastmod | time.Format ":date_medium" }} {{ i18n "lastmod.oldlink" (dict "date" $lastmodDate "link" $original.Permalink ) | .RenderString}}

{{ end }} {{ if .Params.updated }}

⚠️ Warning

{{ $updated := .Page.GetPage .Params.updated }}

{{ $lastmodDate := .Lastmod | time.Format ":date_medium" }} {{ i18n "lastmod.newlink" (dict "date" $lastmodDate "link" $updated.Permalink ) | .RenderString }}

{{ end }} {{ with .Resources }} {{ with .GetMatch "{cover.*}" }} {{ $cover820 := .Resize "820x webp q75 lanczos" }} {{ $cover480 := .Resize "480x webp q75 lanczos" }} Illustration de couverture {{ end }} {{ end }} {{ .Content }}
{{- end }} {{ define "sidebar" }} {{ if and (not .Params.hideToc) (not .Site.Params.hideToc) }} {{ partial "table_of_contents.html" . }} {{ end }} {{ end }}