adjust for co-chair posibility

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

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

Loading…
Cancel
Save