{site}
diff --git a/src/components/taCard.astro b/src/components/taCard.astro index 2e7e13a..0f5b0c8 100644 --- a/src/components/taCard.astro +++ b/src/components/taCard.astro @@ -4,9 +4,10 @@ export interface Props { title: string link: string image: string + user?: string } -const { date, image, link, title } = Astro.props +const { user, date, image, link, title } = Astro.props const options_date: Intl.DateTimeFormatOptions = { year: 'numeric', @@ -16,6 +17,11 @@ const options_date: Intl.DateTimeFormatOptions = { const formatted_date = new Date(date).toLocaleDateString('de-DE', options_date) const icon: string = `background: url('/ta_icons/${image}.webp')` + +let hasuser = '' +if (user !== undefined) { + hasuser = 'hasuser' +} --- @@ -24,12 +30,21 @@ const icon: string = `background: url('/ta_icons/${image}.webp')`{title}
+
+ By {user}
•
+
{formatted_date}