From 239a1d699bb6e3381fd7cf0f9fdd1ebb2a462eb4 Mon Sep 17 00:00:00 2001 From: WilliamDiakite Date: Thu, 17 Oct 2024 16:27:14 -0400 Subject: [PATCH] removes dateStart from project cards --- src/lib/components/GenericCard.svelte | 20 +++++++++++--------- src/lib/i18n/translations.ts | 3 +++ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/lib/components/GenericCard.svelte b/src/lib/components/GenericCard.svelte index 8530b42..98e479f 100644 --- a/src/lib/components/GenericCard.svelte +++ b/src/lib/components/GenericCard.svelte @@ -35,7 +35,7 @@ tags = content.meta.tags; break; case 'project': - date = $dateToLocalizedString(content.meta.dateStart); + date = $dateToLocalizedString(content.meta.since); dateLabel = $t('card.startedOn'); tags = content.meta.tags; break; @@ -84,15 +84,17 @@

{content.meta.title}

-
-
-

{dateLabel} {date}

-
- | -
-

{authors}

+ {#if content.meta.kind !== 'project'} +
+
+

{dateLabel} {date}

+
+ | +
+

{authors}

+
-
+ {/if}

{content.meta.description}

diff --git a/src/lib/i18n/translations.ts b/src/lib/i18n/translations.ts index f327934..5333586 100644 --- a/src/lib/i18n/translations.ts +++ b/src/lib/i18n/translations.ts @@ -141,6 +141,7 @@ const translations: { [locale: string]: { [path: string]: string } } = { 'card.topic': 'Topics', 'card.resource': 'Resource', 'card.publishedOn': 'Published on', + 'card.startedOn': 'Started on', 'card.updatedOn': 'Updated on', 'card.by': 'by', 'card.happeningOn': 'Happening on the', @@ -312,6 +313,8 @@ const translations: { [locale: string]: { [path: string]: string } } = { 'card.updatedOn': 'Mis à jour le', 'card.by': 'par', 'card.happeningOn': 'À venir, le', + 'card.startedOn': 'Débuté le', + // Search