{{ .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 "150x150 webp" }} {{ 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 "200x400 webp" }} {{ else }} {{ end }} {{ .Content }} {{ end }} {{ end }}
{{ .Title }} {{ $wgname }} {{ $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 "150x150 webp" }} {{ 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 "200x400 webp" }} {{ else }} {{ end }} {{ .Content }}