|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
{{ partial "header.html" . }}
|
|
|
|
|
{{ partial "navbar.html" . }}
|
|
|
|
|
{{ $i := 0 }}
|
|
|
|
|
{{ $now := now.Format "20060102" }}
|
|
|
|
|
<main id="main" class="main members">
|
|
|
|
|
<div class="container">
|
|
|
|
|
<section id="intro">
|
|
|
|
@ -25,30 +24,20 @@
|
|
|
|
|
{{ $level := .Param "level" }}
|
|
|
|
|
{{ if eq $level $key }}
|
|
|
|
|
<div class="col-lg-{{ $col }} pt-5 pb-0 pb-lg-3">
|
|
|
|
|
{{ $memberstatus := true }}
|
|
|
|
|
{{ $cancelled := now.Format "20060102" }}
|
|
|
|
|
{{ if isset .Params "cancelled" }}
|
|
|
|
|
{{ $cancelled = time (.Param "cancelled") | dateFormat "20060102" }}
|
|
|
|
|
{{ if lt $cancelled $now }}
|
|
|
|
|
{{ $memberstatus = false }}
|
|
|
|
|
<div class="box">
|
|
|
|
|
<a href="{{ .RelPermalink }}">
|
|
|
|
|
{{ if .Param "image" }}
|
|
|
|
|
{{ $imagename := .Param "image" }}
|
|
|
|
|
{{ $imagelocation := (printf "%s/%s" "images/members/" $imagename) }}
|
|
|
|
|
{{ $imageresource := resources.Get $imagelocation }}
|
|
|
|
|
{{ $image := $imageresource.Fit $imagesize }}
|
|
|
|
|
<img src="{{ $image.RelPermalink }}" alt="{{ .Title }}" title="{{ .Title }}">
|
|
|
|
|
</a>
|
|
|
|
|
{{ else }}
|
|
|
|
|
<h3><a class="text-black" href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ if eq $memberstatus true }}
|
|
|
|
|
<div class="box">
|
|
|
|
|
<a href="{{ .RelPermalink }}">
|
|
|
|
|
{{ if .Param "image" }}
|
|
|
|
|
{{ $imagename := .Param "image" }}
|
|
|
|
|
{{ $imagelocation := (printf "%s/%s" "images/members/" $imagename) }}
|
|
|
|
|
{{ $imageresource := resources.Get $imagelocation }}
|
|
|
|
|
{{ $image := $imageresource.Fit $imagesize }}
|
|
|
|
|
<img src="{{ $image.RelPermalink }}" alt="{{ .Title }}" title="{{ .Title }}">
|
|
|
|
|
</a>
|
|
|
|
|
{{ else }}
|
|
|
|
|
<h3><a class="text-black" href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ $i = add $i 1 }}
|
|
|
|
|
</div>
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ $i = add $i 1 }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ end }}
|
|
|
|
|