Compare commits

..

No commits in common. 'c92686830b8982509b229fdb14a7edb04f21ddf4' and 'f42d9e59bb8c58d240d8c9a69703da0fcb085da3' have entirely different histories.

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



@ -1,7 +1,6 @@
{{ 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">
@ -25,30 +24,20 @@
{{ $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 }} <div class="box">
{{ $cancelled := now.Format "20060102" }} <a href="{{ .RelPermalink }}">
{{ if isset .Params "cancelled" }} {{ if .Param "image" }}
{{ $cancelled = time (.Param "cancelled") | dateFormat "20060102" }} {{ $imagename := .Param "image" }}
{{ if lt $cancelled $now }} {{ $imagelocation := (printf "%s/%s" "images/members/" $imagename) }}
{{ $memberstatus = false }} {{ $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 }}
{{ end }} {{ $i = add $i 1 }}
{{ if eq $memberstatus true }} </div>
<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 }}
</div> </div>
{{ end }} {{ end }}
{{ 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 "header.html" . }}
{{ partial "navbar.html" . }} {{ partial "navbar.html" . }}
<main id="main"> <main id="main">
@ -80,5 +69,3 @@
</section> </section>
</main> </main>
{{ partial "footer.html" . }} {{ partial "footer.html" . }}

{{ end }}

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

Loading…
Cancel
Save