From d1f73304f61ba8062721a7fcb0621e80280e85d2 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 15 Nov 2024 16:56:41 +0200 Subject: Some minor tweaks and updated ssh stuff to the actual values instead of placeholders --- src/components/BlogItem.astro | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/components') diff --git a/src/components/BlogItem.astro b/src/components/BlogItem.astro index 08b98c4..7af463e 100644 --- a/src/components/BlogItem.astro +++ b/src/components/BlogItem.astro @@ -5,17 +5,7 @@ function formatDate(date: Date) { const day = date.getDate(); const month = date.toLocaleString("default", { month: "long" }); const year = date.getFullYear(); - - let suffix = "th"; - if (day === 1 || day === 21 || day === 31) { - suffix = "st"; - } else if (day === 2 || day === 22) { - suffix = "nd"; - } else if (day === 3 || day === 23) { - suffix = "rd"; - } - - return `${month} ${day}${suffix} ${year}`; + return `${month} ${day}, ${year}`; } interface Props { -- cgit v1.3.1