Skip to content

Commit

Permalink
removes dateStart from project cards
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDiakite committed Oct 17, 2024
1 parent 7d1c3a0 commit 239a1d6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/lib/components/GenericCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -84,15 +84,17 @@
<a {href}>
<h2>{content.meta.title}</h2>

<div class="meta">
<div class="meta-date">
<p>{dateLabel} {date}</p>
</div>
<span>|</span>
<div>
<p class="author">{authors}</p>
{#if content.meta.kind !== 'project'}
<div class="meta">
<div class="meta-date">
<p>{dateLabel} {date}</p>
</div>
<span>|</span>
<div>
<p class="author">{authors}</p>
</div>
</div>
</div>
{/if}

<p class="description">{content.meta.description}</p>
</a>
Expand Down
3 changes: 3 additions & 0 deletions src/lib/i18n/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 239a1d6

Please sign in to comment.