From f6db3448bd94acc16aa24cf2a273fd1fe8fcb109 Mon Sep 17 00:00:00 2001 From: Kumi Date: Tue, 23 Jul 2024 10:37:12 +0200 Subject: [PATCH] fix: correct assignment of table_date variable Simplified the assignment of the 'table_date' variable to ensure clearer readability and consistency across the price performance shortcodes. This change helps avoid potential reassignments within the same scope, ensuring the correct date is consistently used for display. --- layouts/shortcodes/price_performance.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/shortcodes/price_performance.html b/layouts/shortcodes/price_performance.html index 424f4ec..803ed67 100644 --- a/layouts/shortcodes/price_performance.html +++ b/layouts/shortcodes/price_performance.html @@ -16,7 +16,7 @@ {{ $price := split (.Get "price_usd") "," }} USD - ${{ index $price 0 }} + ${{ index $price 0 }} {{ $week := index $price 1 }} {{ $month := index $price 2 }} @@ -36,7 +36,7 @@ {{ $price := split (.Get "price_eur") "," }} EUR - €{{ index $price 0 }} + €{{ index $price 0 }} {{ $week := index $price 1 }} {{ $month := index $price 2 }} @@ -56,7 +56,7 @@ {{ $price := split (.Get "price_btc") "," }} BTC - ₿{{ index $price 0 }} + ₿{{ index $price 0 }} {{ $week := index $price 1 }} {{ $month := index $price 2 }}