From b48d322f021d0e1eca9c9da0a559562605c6070b Mon Sep 17 00:00:00 2001 From: recanman <29310982+recanman@users.noreply.github.com> Date: Fri, 5 Jul 2024 10:38:13 -0700 Subject: [PATCH] fix: raised percentage --- layouts/shortcodes/ccs_item.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/ccs_item.html b/layouts/shortcodes/ccs_item.html index 7941d88..32a1dea 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 (.) ($goal) | mul 100 | int }}%)

+

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

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