adjust for co-chair posibility

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
newmemberlevels
Toshaan Bharvani 3 years ago
parent 5cc076822c
commit 88cb5357b8

@ -67,7 +67,9 @@
<div class="row">
{{ range where .Site.RegularPages "Section" "groups" }}
{{ $wgname := .Title }}
{{ $chairfile := printf "%s/%s" "persons" (.Param "chair") }}
{{ $chairs := .Param "chair" }}
{{ range $chairs }}
{{ $chairfile := printf "%s/%s" "persons" . }}
{{ with $.Site.GetPage $chairfile }}
<div class="col-lg-4" id="person">
<div id="person-header">
@ -100,7 +102,7 @@
{{ $imagename := .Param "image" }}
{{ $imagelocation := (printf "%s/%s" "images/persons/" $imagename) }}
{{ $imageresource := resources.Get $imagelocation }}
{{ $image := $imageresource.Fit "200x400" }}
{{ $image := $imageresource.Fit "100x400" }}
<img src="{{ $image.RelPermalink }}" alt="{{ .Title }}">
{{ else }}
&nbsp;
@ -111,6 +113,7 @@
</div>
{{ end }}
{{ end }}
{{ end }}
</div>
</div>
</section>

Loading…
Cancel
Save