{{ partial "header.html" . }} {{ partial "navbar.html" . }} {{ .Title }} {{ .Content }} {{ range .Data.Pages.ByWeight }} {{ .Title }} ({{ .Param "position" }}) {{ $personfile := .File.BaseFileName }} {{ range where .Site.RegularPages "Section" "persons" }} {{ $person := .File.BaseFileName }} {{ if eq $personfile $person }} {{ $member := .Param "member" }} {{ range where .Site.RegularPages "Section" "members" }} {{ $membercompany := .File.BaseFileName }} {{ if eq $member $membercompany }} {{ if .Param "image" }} {{ $imagename := .Param "image" }} {{ $imagelocation := (printf "%s/%s" "images/members/" $imagename) }} {{ $imageresource := resources.Get $imagelocation }} {{ $image := $imageresource.Fit "100x100" }} {{ else }} {{ .Title }} {{ end }} {{ end }} {{ end }} {{ if .Param "image" }} {{ $imagename := .Param "image" }} {{ $imagelocation := (printf "%s/%s" "images/persons/" $imagename) }} {{ $imageresource := resources.Get $imagelocation }} {{ $image := $imageresource.Fit "100x400" }} {{ else }} {{ end }} {{ .Content }} {{ end }} {{ end }} {{ end }} {{ partial "footer.html" . }}
{{ .Content }}