Browse Source

fixed members pulsbar

master
Chris 6 years ago
parent
commit
9d70193ebb
  1. 2
      config.toml
  2. 6
      layouts/partials/members-summary.html

2
config.toml

@ -18,7 +18,7 @@ archetypeDir = "../kollegen-posts/archetypes"
category = "categories"
tag = "tags"
sport = "sports"
eventtype = "eventtypes"
type = "types"
member = "members"
location = "locations"
year = "years"

6
layouts/partials/members-summary.html

@ -54,11 +54,7 @@ function onyearout(key){
{{ end }}
{{ $height := 0 }}
{{ if gt $maxDist 0 }}
{{ $height = mul (float $totalHeight ) ( div (float $dist ) ( float $maxDist ) ) }}
{{ else }}
{{ $height = mul (float $totalHeight ) ( div (float $count ) ( float $maxCount ) ) }}
{{ end }}
{{ $height = mul (float $totalHeight ) ( div (float $count ) ( float $maxCount ) ) }}
{{/* $maxDist */}}
{{/* $dist */}}
{{/* $x */}}

Loading…
Cancel
Save