{{ partial "header.html" . }} {{ partial "navbar.html" . }}

{{ .Title }}

{{ if .Param "image" }}

{{ $imagefilename := .Param "image.file" }} {{ $imagesize := .Param "image.size" }} {{ $imagelocation := printf "%s/%s" "img" $imagefilename }} {{ $imageresource := resources.Get $imagelocation }} {{ if $imageresource }} {{ $imagefile := $imageresource }} {{ if $imagesize }} {{ $imagefile = $imageresource.Resize $imagesize }} {{ else }} {{ $imagefile = $imageresource.Resize "750x750" }} {{ end }}

{{ end }}

{{ else }}
 
{{ end }}

{{ .Content }}

{{ if .Param "image" }}
{{ else }}
 
{{ end }}
{{ partial "footer.html" . }}