Compare commits

..

No commits in common. '51876218837b1f71a21914a70f8d3e5ff747c6c7' and '46bedd370eb4582af2fde28527ed13b605a61d2a' have entirely different histories.

@ -1,5 +1,5 @@
---
title: "Lance Albertson"
title: "Lance Director"
position: Director
weight: 4000
date: 2023-03-29

@ -4,9 +4,8 @@ image: "yadro-black.png"
level: platinum
country: Russia
joined: 2015
cancelled: 2023-04-01
link: "https://www.yadro.com/"
date: 2023-04-13
date: 2021-03-02
draft: false
---


@ -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 }}

@ -1,14 +1,3 @@
{{ $now := now.Format "20060102" }}
{{ $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 }}

{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<main id="main">
@ -80,5 +69,3 @@
</section>
</main>
{{ partial "footer.html" . }}

{{ end }}

@ -3,9 +3,6 @@
"permalink": "{{ .RelPermalink }}",
"level": "{{ .Params.level }}",
"joined": "{{ .Params.joined }}",
{{ if isset .Params "cancelled" }}
"cancelled": "{{ time (.Param "cancelled") | dateFormat "20060102" }}",
{{ end }}
"link": "{{ .Params.link }}",
"content": "{{ .PlainWords }}"
}

Loading…
Cancel
Save