{{ define "main" -}}
{{ partial "post/info.html" . }} {{ partial "post/i18nlist.html" . }} {{ $postDate := .Date }} {{ $twoYearsAgo := now.AddDate -2 0 0 }} {{ if lt $postDate $twoYearsAgo }}

⚠️ Warning

{{ i18n "old-post" }}

{{ end }} {{ 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 }} {{ if (.Site.Params.listmonk) }} {{ partial "post/listmonk_email_newsletters.html" . }} {{ end }} {{ partial "post/navigation.html" . }} {{ if or (.Site.Params.remark42) (.Site.Config.Services.Disqus.Shortname) }} {{ partial "post/comments.html" . }} {{ end }}
{{- end }} {{ define "sidebar" }} {{ if and (not .Params.hideToc) (not .Site.Params.hideToc) }} {{ partial "table_of_contents.html" . }} {{ end }} {{ end }}