Skip to content

Commit

Permalink
Homepage: show number of members
Browse files Browse the repository at this point in the history
  • Loading branch information
vladh committed Sep 20, 2024
1 parent 90156f7 commit 8dcb139
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ import Button from "../components/Button.astro";
import Layout from "../layouts/Layout.astro";
import MiniLeaderboard from "../components/MiniLeaderboard.astro";
import TextButton from "../components/TextButton.astro";
import {
getMembers, filterInactiveMembers,
} from '../members.ts';
const members = filterInactiveMembers(await getMembers());
---

<Layout>
Expand Down Expand Up @@ -69,9 +74,7 @@ import TextButton from "../components/TextButton.astro";
<MiniLeaderboard></MiniLeaderboard>

<div class="text-center">
<TextButton href="/members"
>Explore all members</TextButton
>
<TextButton href="/members">Explore all {members.length} members</TextButton>
</div>
</div>
</section>
Expand Down

0 comments on commit 8dcb139

Please sign in to comment.