From 5a56c572af762efb56780b48cf003bb0fbcc23b9 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Sat, 25 Apr 2026 13:06:00 +0100 Subject: [PATCH] FormattedDate component can be hidden --- website/src/components/FormattedDate.astro | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/website/src/components/FormattedDate.astro b/website/src/components/FormattedDate.astro index bb7a2c0..ce700f1 100644 --- a/website/src/components/FormattedDate.astro +++ b/website/src/components/FormattedDate.astro @@ -2,20 +2,22 @@ interface Props { className?: string; date: Date | string; + hidden?: boolean; } -let { className, date } = Astro.props; +let { className, date, hidden } = Astro.props; if (typeof(date) === 'string') { date = new Date(date); } ---- - - + }); +--- + +{ hidden + ? + : +}