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