Improve opacity on the software list again
Some checks failed
Deploy / Deploy Website (push) Failing after 31s
Some checks failed
Deploy / Deploy Website (push) Failing after 31s
This commit is contained in:
parent
7ff52707cd
commit
db5c13d388
1 changed files with 2 additions and 2 deletions
|
@ -91,11 +91,11 @@
|
||||||
{{ range .Data.Pages.ByDate.Reverse }}
|
{{ range .Data.Pages.ByDate.Reverse }}
|
||||||
<div class="blurb">
|
<div class="blurb">
|
||||||
{{ $since_year := (sub now.Year (.Date.Year)) }}
|
{{ $since_year := (sub now.Year (.Date.Year)) }}
|
||||||
{{ $zero_to_one := math.Div (float $since_year) 8.0 }}
|
{{ $zero_to_one := math.Div (float $since_year) 6.0 }}
|
||||||
{{ $opacity := math.Sub 1.0 $zero_to_one }}
|
{{ $opacity := math.Sub 1.0 $zero_to_one }}
|
||||||
{{ $opacity = math.Max $opacity 0.0 }}
|
{{ $opacity = math.Max $opacity 0.0 }}
|
||||||
{{ $opacity_percentage := 0.0 }}
|
{{ $opacity_percentage := 0.0 }}
|
||||||
{{ if gt $opacity 0.5 }}
|
{{ if gt $opacity 0.49 }}
|
||||||
{{ $opacity_percentage = 100.0 }}
|
{{ $opacity_percentage = 100.0 }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue