Update speaker counts

This commit is contained in:
tree 2023-03-25 01:30:32 +01:00
parent 1d71c29aaa
commit ee0e231a81
1 changed files with 6 additions and 4 deletions

View File

@ -15,10 +15,12 @@
return !e.types.find((t) => ['conference', 'hackathon'].includes(t)) && !e.hidden;
});
const speakers = processItemsList(data.bundle.speakers)
const collections = [
{ title: 'Days', value: 10, col: 'schedule' },
{ title: 'Events', col: 'events', filter: (e) => !e.hidden },
{ title: 'Speakers', col: 'speakers', value: processItemsList(data.bundle.speakers).length },
{ title: 'Speakers', col: 'speakers', value: speakers.length },
{ title: 'Places', col: 'places' },
{ title: 'Media Partners', col: 'media-partners' },
//{ title: "Blockchains", col: "chains" },
@ -68,14 +70,14 @@
<CollectionList arr={otherEvents} img="logo" col="event" {entry} />
</div>
<h2 class="text-2xl uppercase font-bold mt-10 pbw-text-color-secondary">
<a href="/{entry}/speakers">Speakers</a> ({data.bundle.speakers.length})
<a href="/{entry}/speakers">Speakers</a> ({speakers.length})
</h2>
<h2 class="text-xl uppercase font-bold mt-10 pbw-text-color-secondary">International 🌎</h2>
<div
class="grid grid-cols-3 sm:grid-cols-3 md:grid-cols-6 xl:grid-cols-8 my-6 text-center text-xl"
>
<CollectionList
arr={processItemsList(data.bundle.speakers.filter((s) => !['cz', 'sk'].includes(s.country)).sort((x, y) => (x.name > y.name ? 1 : -1)))}
arr={processItemsList(speakers.filter((s) => !['cz', 'sk'].includes(s.country)).sort((x, y) => (x.name > y.name ? 1 : -1)))}
{entry}
offer="true"
/>
@ -87,7 +89,7 @@
class="grid grid-cols-3 sm:grid-cols-3 md:grid-cols-6 xl:grid-cols-8 my-6 text-center text-xl"
>
<CollectionList
arr={processItemsList(data.bundle.speakers.filter((s) => ['cz', 'sk'].includes(s.country)).sort((x, y) => (x.name > y.name ? 1 : -1)))}
arr={processItemsList(speakers.filter((s) => ['cz', 'sk'].includes(s.country)).sort((x, y) => (x.name > y.name ? 1 : -1)))}
{entry}
offer="true"
/>