{{ define "main" }}

{{ .Title }}

{{ if .Params.Preamble }}{{ .Summary }}{{ end }}

 
{{ $alt := .Params.bigpictureAlt }} {{ $copy := .Params.bigpictureCaption }} {{ $img := .Resources.GetMatch .Params.bigpicture }} {{ with $img }} {{ $sizedImg := $img.Fit "1390x730" }} {{ if $copy }}
{{$copy}}
{{ end }} {{ end }}
{{ .Content }}
{{ if .Params.Gallery }} {{- $rsc := .Resources -}} {{ $postLink := .RelPermalink }}
{{ range $elem := .Params.Gallery }} {{ $img := $rsc.GetMatch (cond (isset . "src") .src .) }} {{ with $img }} {{ $sizedImg := $img.Resize "375x" }} {{$elem.caption}}{{end}}" {{ else if isset $elem "caption" }} data-title="{{$elem.caption}}" {{end}} > {{ if isset $elem "caption" }}
{{$elem.caption}}
{{ end }}
{{ end }} {{ end }}
{{ end }}
{{- partial "socialshare.html" . -}} {{- partial "relates.html" . -}} {{- partial "section-footer.html" . -}} {{ end }}