correction for better layout due to cancelled members

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
jamesk-patch-1
Toshaan Bharvani 6 months ago
parent 3715bd22d4
commit 8c8fb59c4f

@ -24,16 +24,16 @@
{{ range $.Site.Pages.ByTitle }} {{ range $.Site.Pages.ByTitle }}
{{ $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"> {{ $memberstatus := true }}
{{ $memberstatus := true }} {{ $cancelled := now.Format "20060102" }}
{{ $cancelled := now.Format "20060102" }} {{ if isset .Params "cancelled" }}
{{ if isset .Params "cancelled" }} {{ $cancelled = time (.Param "cancelled") | dateFormat "20060102" }}
{{ $cancelled = time (.Param "cancelled") | dateFormat "20060102" }} {{ if lt $cancelled $now }}
{{ if lt $cancelled $now }} {{ $memberstatus = false }}
{{ $memberstatus = false }}
{{ end }}
{{ end }} {{ end }}
{{ if eq $memberstatus true }} {{ end }}
{{ if eq $memberstatus true }}
<div class="col-lg-{{ $col }} pt-2 pb-0 pb-lg-3">
<div class="box"> <div class="box">
<a href="{{ .RelPermalink }}"> <a href="{{ .RelPermalink }}">
{{ if .Param "image" }} {{ if .Param "image" }}
@ -48,8 +48,8 @@
{{ end }} {{ end }}
{{ $i = add $i 1 }} {{ $i = add $i 1 }}
</div> </div>
{{ end }} </div>
</div> {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}
</div> </div>

Loading…
Cancel
Save