{{ define "main" }}

{{ .Page.Title }}

{{ if and (isset .Params "image") .Params.image }} {{ $image := .Page.Resources.GetMatch .Params.image }} {{ with $image }} {{ $thumb := .Resize "x1080" }} {{ printf `%s` $thumb.RelPermalink .Title | safeHTML }} {{end}} {{ end }} {{ .Content }} {{ end }}