@ -1,6 +1,7 @@
{{ partial "header.html" . }}
{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
{{ partial "navbar.html" . }}
{{ $i := 0 }}
{{ $i := 0 }}
{{ $now := now.Format "20060102" }}
<main id="main" class="main members">
<main id="main" class="main members">
<div class="container">
<div class="container">
<section id="intro">
<section id="intro">
@ -24,6 +25,15 @@
{{ $level := .Param "level" }}
{{ $level := .Param "level" }}
{{ if eq $level $key }}
{{ if eq $level $key }}
<div class="col-lg-{{ $col }} pt-5 pb-0 pb-lg-3">
<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 }}
{{ end }}
{{ end }}
{{ if eq $memberstatus true }}
<div class="box">
<div class="box">
<a href="{{ .RelPermalink }}">
<a href="{{ .RelPermalink }}">
{{ if .Param "image" }}
{{ if .Param "image" }}
@ -38,6 +48,7 @@
{{ end }}
{{ end }}
{{ $i = add $i 1 }}
{{ $i = add $i 1 }}
</div>
</div>
{{ end }}
</div>
</div>
{{ end }}
{{ end }}
{{ end }}
{{ end }}