fix counter

This commit is contained in:
speatzle 2024-05-10 18:13:19 +02:00
parent 13433c2972
commit bf34abf5f8
2 changed files with 6 additions and 7 deletions

View file

@ -4,13 +4,13 @@
{{range $i, $c := .Counter}}
<img class="counter-image" alt="{{$c}}" src="/static/counter/{{$c}}.gif">
{{ $n := sub $l $i }}
{{ if $n eq 4 }}
{{ if eq $n 4 }}
KB
{{ else if $n eq 8 }}
{{ else if eq $n 7 }}
MB
{{ else if $n eq 12 }}
{{ else if eq $n 10 }}
GB
{{ else if $n eq 16 }}
{{ else if eq $n 13 }}
TB
{{end}}
{{end}}