You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openpower.foundation/themes/openpowerfoundation/layouts/steeringcommittee/list.html

123 lines
3.9 KiB
HTML

{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<main id="main">
<section id="steeringcomittee">
<div class="container-fluid">
<div class="section-header col-lg-8 offset-lg-2">
3 years ago
<h1 class="section-title text-center">{{ .Title }}</h1>
<p class="section-description">{{ .Content }}</p>
</div>
<div class="row">
{{ range .Data.Pages.ByWeight }}
<article class="post__article bg col-10 offset-1 row mb-4 mb-lg-0 pt-4">
<div id="person">
<div class="row">
<div class="col-lg-4"></div>
<div class="col-lg-6">
<h2>{{ .Title }}</h2>
<h3>{{ .Param "position" }}</h3>
</div>
<div class="col-lg-2 personmember">
{{ $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 }}
<a href="{{ .RelPermalink }}">
{{ if .Param "image" }}
{{ $imagename := .Param "image" }}
{{ $imagelocation := (printf "%s/%s" "/images/members/" $imagename) }}
{{ $imageresource := resources.Get $imagelocation }}
{{ $image := $imageresource.Fit "150x150 webp" }}
<img src="{{ $image.RelPermalink }}" alt="{{ .Title }}" title="{{ .Title }}">
{{ else }}
{{ .Title }}
{{ end }}
</a>
{{ end }}
{{ end }}
</div>
</div>
<div class="row">
<div class="col-lg-4">
{{ if .Param "image" }}
{{ $imagename := .Param "image" }}
{{ $imagelocation := (printf "%s/%s" "images/persons/" $imagename) }}
{{ $imageresource := resources.Get $imagelocation }}
{{ $image := $imageresource.Fit "200x400 webp" }}
<img src="{{ $image.RelPermalink }}" alt="{{ .Title }}">
{{ else }}
&nbsp;
{{ end }}
</div>
<div class="col-lg-8">{{ .Content }}</div>
</div>
{{ end }}
{{ end }}
</div>
</article>
{{ end }}
</div>
<div class="row">
{{ range where .Site.RegularPages "Section" "groups" }}
{{ $wgname := .Title }}
{{ $chairs := .Param "chair" }}
{{ range $chairs }}
{{ $chairfile := printf "%s/%s" "persons" . }}
{{ with $.Site.GetPage $chairfile }}
<article class="post__article col-10 offset-1 row mb-4 pt-4 pb-4">
<div id="person">
<div class="row">
<div class="col-lg-4"></div>
<div class="col-lg-6">
<h2>{{ .Title }}</h2>
<h3>{{ $wgname }}</h3>
</div>
<div class="col-2 personmember">
{{ $member := .Param "member" }}
{{ range where .Site.RegularPages "Section" "members" }}
{{ $membercompany := .File.BaseFileName }}
{{ if eq $member $membercompany }}
<a href="{{ .RelPermalink }}">
{{ if .Param "image" }}
{{ $imagename := .Param "image" }}
{{ $imagelocation := (printf "%s/%s" "images/members/" $imagename) }}
{{ $imageresource := resources.Get $imagelocation }}
{{ $image := $imageresource.Fit "150x150 webp" }}
<img src="{{ $image.RelPermalink }}" alt="{{ .Title }}" title="{{ .Title }}">
{{ else }}
{{ .Title }}
{{ end }}
</a>
{{ end }}
{{ end }}
</div>
</div>
<div class="row">
<div class="col-lg-4">
{{ if .Param "image" }}
{{ $imagename := .Param "image" }}
{{ $imagelocation := (printf "%s/%s" "images/persons/" $imagename) }}
{{ $imageresource := resources.Get $imagelocation }}
{{ $image := $imageresource.Fit "200x400 webp" }}
<img src="{{ $image.RelPermalink }}" alt="{{ .Title }}">
{{ else }}
&nbsp;
{{ end }}
</div>
<div class="col-lg-8">{{ .Content }}</div>
</div>
</div>
</article>
{{ end }}
{{ end }}
{{ end }}
</div>
</div>
</section>
</main>
{{ partial "footer.html" . }}