{{ define "main" }}
<h1>{{ .Page.Title }}</h1>

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

{{ end }}
