From ba4619060311b8be1913a733af4fcc16aa7e1eb0 Mon Sep 17 00:00:00 2001
From: recanman <29310982+recanman@users.noreply.github.com>
Date: Fri, 5 Jul 2024 10:19:35 -0700
Subject: [PATCH] fix: check existence of goal as it is never zero

---
 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 2cfa50b..7941d88 100644
--- a/layouts/shortcodes/ccs_item.html
+++ b/layouts/shortcodes/ccs_item.html
@@ -7,7 +7,7 @@
 
 	{{ $goal := .Get "goal" }}
 	{{ $raised := .Get "raised" }}
-	{{ with .Get "raised" }}
+	{{ with $goal }}
 <p>Raised <b>{{ $raised }}</b> of <b>{{ $goal }}</b> XMR ({{ div (.) ($goal) | mul 100 | int }}%)</p>
 	{{ end }}
 </div>
\ No newline at end of file