{{ 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 "200x400" }} {{ else }} {{ end }} {{ .Content }} {{ end }} {{ end }} {{ end }} {{ range where .Site.RegularPages "Section" "groups" }} {{ $wgname := .Title }} {{ $chairfile := printf "%s/%s" "persons" (.Param "chair") }} {{ with $.Site.GetPage $chairfile }} {{ .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 "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 }} {{ partial "footer.html" . }}
{{ .Content }}