Skip to content

Commit

Permalink
Merge pull request #254 from iodigital-com/feature/talks
Browse files Browse the repository at this point in the history
feat(authors): hide archived authors from overview
  • Loading branch information
DaveBitter authored Aug 12, 2024
2 parents 8a15d73 + 8b7fadc commit 8e241dc
Show file tree
Hide file tree
Showing 22 changed files with 29 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/authors/albert-groothedde.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: Albert Groothedde
avatar: /authors/albert-groothedde.jpeg
occupation: Software Engineer & Developer Advocate
Expand Down
1 change: 1 addition & 0 deletions data/authors/ali-goktas.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: Ali Göktaş
avatar: /authors/ali-goktas.jpg
occupation: Software Developer
Expand Down
1 change: 1 addition & 0 deletions data/authors/ayo-ayco.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: Ayo Ayco
avatar: /authors/ayo-ayco.png
occupation: Senior Frontend Developer
Expand Down
1 change: 1 addition & 0 deletions data/authors/bader-ali.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: Bader Ali
avatar: /authors/bader-ali.jpg
occupation: Trainee Software Development
Expand Down
1 change: 1 addition & 0 deletions data/authors/corne-hoskam.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: Corné Hoskam
avatar: /authors/corne-hoskam.jpg
occupation: Software Engineer & Umbraco Domain Lead
Expand Down
1 change: 1 addition & 0 deletions data/authors/frank-van-eldijk.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: Frank van Eldijk-Smeding
avatar: /authors/frank-van-eldijk.jpeg
occupation: Senior Frontend Consultant & Lead Accessibility
Expand Down
1 change: 1 addition & 0 deletions data/authors/jelle-biesemans.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: Jelle Biesemans
avatar: /authors/jelle-biesemans.jpg
occupation: JavaScript Developer
Expand Down
1 change: 1 addition & 0 deletions data/authors/jurgen-belien.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: Jurgen Beliën
avatar: /authors/jurgen-belien.jpeg
occupation: Senior Frontend Developer
Expand Down
1 change: 1 addition & 0 deletions data/authors/lucien-immink.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: Lucien Immink
avatar: /authors/lucien-immink.webp
occupation: Software Architect & Developer Advocate
Expand Down
1 change: 1 addition & 0 deletions data/authors/luud-janssen.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: Luud Janssen
avatar: /authors/luud-janssen.jpg
occupation: Software Developer
Expand Down
1 change: 1 addition & 0 deletions data/authors/luuk-rijnbende.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: Luuk Rijnbende
avatar: /authors/luuk-rijnbende.jpg
occupation: Senior Frontend Consultant
Expand Down
1 change: 1 addition & 0 deletions data/authors/maarten-van-hoof.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: Maarten Van Hoof
avatar: /authors/maarten-van-hoof.jpg
occupation: Developer Advocate & Frontend
Expand Down
1 change: 1 addition & 0 deletions data/authors/mohamad-shiralizadeh.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: Mohamad Shiralizadeh
avatar: /authors/mohamad-shiralizadeh.jpeg
occupation: Senior Frontend Developer
Expand Down
1 change: 1 addition & 0 deletions data/authors/openai-gpt3.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: OpenAI GPT-3
avatar: /authors/openai-gpt3.png
occupation: Cloud Occupant
Expand Down
1 change: 1 addition & 0 deletions data/authors/ronny-rook.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: Ronny Rook
avatar: /authors/ronny-rook.jpg
occupation: Front-end Developer
Expand Down
1 change: 1 addition & 0 deletions data/authors/roy-berris.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: Roy Berris
avatar: /authors/roy-berris.jpg
occupation: Back-end Developer
Expand Down
1 change: 1 addition & 0 deletions data/authors/saeed-salehi.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: Saeed Salehi
avatar: /authors/saeed-salehi.jpeg
occupation: Senior Backend Developer .Net Team
Expand Down
1 change: 1 addition & 0 deletions data/authors/vince-liem.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: Vince Liem
avatar: /authors/vince-liem.png
occupation: Senior Frontend Consultant & AI expert
Expand Down
1 change: 1 addition & 0 deletions data/authors/vlad-pintea.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: Vlad Pintea-Gärtner
avatar: /authors/vlad-pintea.jpeg
occupation: Senior Frontend Consultant
Expand Down
1 change: 1 addition & 0 deletions data/authors/zjerilon-ferero.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
archived: true
name: Zjerilon Ferero
avatar: /authors/zjerilon-ferero.jpeg
occupation: Frontend Consultant
Expand Down
4 changes: 3 additions & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export default function Home({ posts, videos, jobs, contributors }) {
return acc
}, {})

const activeContributors = contributors.filter((contributor) => !contributor.archived)

return (
<>
<PageSEO title={siteMetadata.title} description={siteMetadata.description} />
Expand Down Expand Up @@ -152,7 +154,7 @@ export default function Home({ posts, videos, jobs, contributors }) {
<span className="font-serif font-light">speakers</span>
</SectionTitle>
<div className="container mx-auto mt-8">
<ContributorsGrid contributors={contributors} />
<ContributorsGrid contributors={activeContributors} />
</div>

<SectionTitle id="videos">
Expand Down
6 changes: 6 additions & 0 deletions pages/talks.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ export default function Talks({ talks, authors }) {
<ul className="grid gap-y-10 md:gap-x-4 lg:grid-cols-2 lg:gap-y-12 xl:grid-cols-3 xl:gap-x-6">
{talks.map((talk) => {
const talkAuthors = talk.authors.map((author) => authors[author])
const hasArchivedAuthor = talkAuthors.find((author) => author.archived)

if (hasArchivedAuthor) {
return null
}

return <Talk key={talk.title} {...talk} authors={talkAuthors} />
})}
</ul>
Expand Down

0 comments on commit 8e241dc

Please sign in to comment.