From 9d70193ebb1201ab129d99bc3609509273f99fb3 Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 19 Nov 2020 22:13:09 +0100 Subject: [PATCH] fixed members pulsbar --- config.toml | 2 +- layouts/partials/members-summary.html | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/config.toml b/config.toml index 42dec01..fcc4e2a 100644 --- a/config.toml +++ b/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" diff --git a/layouts/partials/members-summary.html b/layouts/partials/members-summary.html index 8255d70..efdca1a 100644 --- a/layouts/partials/members-summary.html +++ b/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 */}}