From 5ce6f6a29639a499e15d8d219718a82df9cf6a63 Mon Sep 17 00:00:00 2001 From: recanman <29310982+recanman@users.noreply.github.com> Date: Sat, 31 Aug 2024 01:31:50 +0000 Subject: [PATCH] fix: ccs percentage with integers --- layouts/shortcodes/ccs_item.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/ccs_item.html b/layouts/shortcodes/ccs_item.html index 32a1dea..42abc67 100644 --- a/layouts/shortcodes/ccs_item.html +++ b/layouts/shortcodes/ccs_item.html @@ -8,6 +8,6 @@ {{ $goal := .Get "goal" }} {{ $raised := .Get "raised" }} {{ with $goal }} -

Raised {{ $raised }} of {{ $goal }} XMR ({{ div ($raised) ($goal) | mul 100 | int }}%)

+

Raised {{ $raised }} of {{ $goal }} XMR ({{ div (mul $raised 1.0) (mul $goal 1.0) | mul 100 | int }}%)

{{ end }} - \ No newline at end of file +