{{ with .Site.GetPage "/actu" }} {{ $actu := . }} {{ range .Resources.ByType "page" }} {{ if or (not .Params.draft) (eq hugo.Environment "development") }}
{{ $src := $actu.Resources.GetMatch (printf "*%s/%s*" (path.Base .File.Dir) (.Params.Image)) }} {{ if $src }} {{ $image := $src.Fill "432x300 Center" }} {{ end }}

{{ .Title }}

{{ .Content }}
{{ end }} {{ end }} {{ end }}