{{ partial "header.html" . }}
{{ partial "navbar.html" . }}

 <main id="main" class="main boardofdirectors">
		<div class="container">
			<div class="row">
		 	<h1 class="section-header my-3 my-md-5 pb-2 pb-md-3 text-center">{{ .Title }}</h1>
		{{ range .Data.Pages.ByWeight }}
			<article class="post__article row mb-4 mb-lg-0">
				<div class="col-md-2 mb-4 mb-md-0 pt-md-3 pl-4 pl-lg-0">
					{{ $personfile := .File.BaseFileName }}
					{{ range where .Site.RegularPages "Section" "persons" }}
						{{ $person := .File.BaseFileName }}
						{{ if eq $personfile $person }}
						{{ if .Param "image" }}
										{{ $imagename := .Param "image" }}
										{{ $imagelocation := (printf "%s/%s" "images/persons/" $imagename) }}
										{{ $imageresource := resources.Get $imagelocation }}
										{{ $image := $imageresource.Fit "390x390" }}
										<img class="img-fluid"  src="{{ $image.RelPermalink }}" alt="{{ .Title }}" title="{{ .Title }}">
									{{ else }}
										{{ .Title }}
						           {{ end }}
					        {{ end }}
					{{ end }}
				</div>
				<div class="col-md-10 pl-4">
					<h2>{{ .Title }}, {{ .Param "position" }}</h2>
					{{ $personfile := .File.BaseFileName }}
					{{ range where .Site.RegularPages "Section" "persons" }}
						{{ $person := .File.BaseFileName }}
						{{ if eq $personfile $person }}

					<h3>{{ .Param "member" }}</h3>
					<p>{{ .Content }}</p>
				</div>
			</article>
		      	{{ end }}
			  {{ end }}
			{{ end }}
   </div>
  </div>
</main>
{{ partial "footer.html" . }}
