|
|
@ -4,6 +4,7 @@
|
|
|
|
{{ $promobackgroundimagelocation := (printf "%s/%s" "images/home/" $promobackgroundimagename) }}
|
|
|
|
{{ $promobackgroundimagelocation := (printf "%s/%s" "images/home/" $promobackgroundimagename) }}
|
|
|
|
{{ $promobackgroundimageresource := resources.Get $promobackgroundimagelocation }}
|
|
|
|
{{ $promobackgroundimageresource := resources.Get $promobackgroundimagelocation }}
|
|
|
|
{{ $promobackgroundimage := $promobackgroundimageresource.Resize "3840x2160 webp" }}
|
|
|
|
{{ $promobackgroundimage := $promobackgroundimageresource.Resize "3840x2160 webp" }}
|
|
|
|
|
|
|
|
{{ $now := now.Format "20060102" }}
|
|
|
|
<section class="home promo__section d-flex flex-column justify-content-center" style="background-image:url({{ $promobackgroundimage.RelPermalink }})" >
|
|
|
|
<section class="home promo__section d-flex flex-column justify-content-center" style="background-image:url({{ $promobackgroundimage.RelPermalink }})" >
|
|
|
|
<div class="promo__container container text-center">
|
|
|
|
<div class="promo__container container text-center">
|
|
|
|
<h1>{{ .Param "promo.header" }}</h1>
|
|
|
|
<h1>{{ .Param "promo.header" }}</h1>
|
|
|
@ -75,6 +76,15 @@
|
|
|
|
{{ range where .Site.RegularPages "Section" "members" }}
|
|
|
|
{{ range where .Site.RegularPages "Section" "members" }}
|
|
|
|
{{ $level := .Param "level" }}
|
|
|
|
{{ $level := .Param "level" }}
|
|
|
|
{{ if eq $level "platinum" }}
|
|
|
|
{{ if eq $level "platinum" }}
|
|
|
|
|
|
|
|
{{ $memberstatus := true }}
|
|
|
|
|
|
|
|
{{ $cancelled := now.Format "20060102" }}
|
|
|
|
|
|
|
|
{{ if isset .Params "cancelled" }}
|
|
|
|
|
|
|
|
{{ $cancelled = time (.Param "cancelled") | dateFormat "20060102" }}
|
|
|
|
|
|
|
|
{{ if lt $cancelled $now }}
|
|
|
|
|
|
|
|
{{ $memberstatus = false }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if eq $memberstatus true }}
|
|
|
|
{{ if .Param "image" }}
|
|
|
|
{{ if .Param "image" }}
|
|
|
|
{{ $imagename := .Param "image" }}
|
|
|
|
{{ $imagename := .Param "image" }}
|
|
|
|
{{ $imagelocation := (printf "%s/%s" "images/members/" $imagename) }}
|
|
|
|
{{ $imagelocation := (printf "%s/%s" "images/members/" $imagename) }}
|
|
|
@ -86,6 +96,7 @@
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|