put platinum members on first page

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
newmemberlevels
Toshaan Bharvani 3 years ago
parent aa0c2fd8ab
commit d5966fe232

@ -78,20 +78,20 @@
<div class="container"> <div class="container">
<h2 class="teaser__title text-center">{{ .Param "sections.section-supporters.title" }}</h2> <h2 class="teaser__title text-center">{{ .Param "sections.section-supporters.title" }}</h2>
<div class="row justify-content-center"> <div class="row justify-content-center">
{{ range where .Site.RegularPages "Section" "members" }}
{{ $level := .Param "level" }} {{ $level := .Param "level" }}
{{ if eq $level "platinum" }} {{ if eq $level "platinum" }}
{{ if .Param "image" }} {{ if .Param "image" }}

{{ $imagename := .Param "image" }} {{ $imagename := .Param "image" }}
{{ $imagelocation := (printf "%s/%s" "images/" $imagename) }} {{ $imagelocation := (printf "%s/%s" "images/members/" $imagename) }}
{{ $imageresource := resources.Get $imagelocation }} {{ $imageresource := resources.Get $imagelocation }}
{{ $image := $imageresource.Fit "180x102" }} {{ $image := $imageresource.Resize "185x102" }}
<div class="col-md-2 pb-3 pb-lg-0"> <div class="col-md-2 pb-3 pb-lg-0">
<img class="img-fluid" src="{{ $image.RelPermalink }}" width="180" height="102" alt="{{ .Title }}"> <img class="img-fluid" src="{{ $image.RelPermalink }}" width="180" height="102" alt="{{ .Title }}">
</div> </div>
{{ end }} {{ end }}
{{ end }} {{ end }}

{{ end }}


</div> </div>
</div> </div>

Loading…
Cancel
Save