{{ define "main" }} {{ $content_class := $.Page.Params.title | lower }} {{ if eq (.Title | lower) "about" }}
{{ $img := relURL "img/headshot_example.png" }} {{ if isset $.Site.Params.about "headshot" }} {{ if fileExists ( printf "themes/sophie-lewis/static/img/%s" $.Site.Params.about.headshot ) }} {{ $img := relURL ( printf "img/%s" $.Site.Params.about.headshot )}} {{ else }} {{ end }} {{ else }} {{ end }}
{{.Content}}
{{ else }}
{{.Content}}
{{ end }} {{ end }}