Compare commits

..

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

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