Skip to content

Commit 7345618

Browse files
authored
refactor(community): filter out teams without any current members (#279)
1 parent b5d7646 commit 7345618

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/data/governance.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,6 @@ const governanceYml = (await fetch(
8282
.then((r) => r.text())
8383
.then((t) => parse(t))) as GovernanceSchema;
8484

85-
export const leadership = governanceYml.leadership;
85+
export const leadership = governanceYml.leadership.filter(
86+
(team) => team["current-members"].length > 0,
87+
) as AllLeadershipTeams;

src/pages/community/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import UserCard from "./_components/UserCard.astro";
1515
description="View the Catppuccin community! Learn about our teams, their roles, and how every contributor, including you, is at the heart of the project.">
1616
<PageIntro title="Community">
1717
<p>
18-
Catppuccin is not governed or controlled by one person, 4 main teams are responsible for different parts of the
19-
project.
18+
Catppuccin is not governed or controlled by one person, {leadership.length} main teams are responsible for different
19+
parts of the project.
2020
</p>
2121
<p>
2222
<strong>And of course you!</strong> Whether you maintain your own port; have contributed via a pull request; or raised

0 commit comments

Comments
 (0)