{{ define "main" }}

Le fil des actualités

{{ $headless := .Site.GetPage "/actualites" }} {{ $lastnews := first 4 (sort $headless.Pages "Date" "desc") }} {{ $first := index (first 1 $lastnews) 0 }} {{ $others := after 1 $lastnews }} {{ with $first }}
{{ $image := .Resources.GetMatch (default "*" .Params.image) }} {{ $resized := $image.Fill "220x220 Center"}} {{ .RenderString .Title }}
- {{ .Params.catégorie }}

{{ .RenderString .Title }}

{{ .Content | truncate 280 }}
{{ end }} {{ range $others }}
{{ $image := .Resources.GetMatch (default "*" .Params.image) }} {{ if $image }} {{ $resized := $image.Fill "100x100 Center"}} {{ .Title }} {{ end }}
- {{ .Params.catégorie }}

{{ .Title }}

{{ .Content | truncate 200 }}
{{ end }}
{{ .Content }}
{{ end }}