From 0cd6dcf5908a26a7ae05310768cc6e98452cc1b3 Mon Sep 17 00:00:00 2001 From: crertel Date: Wed, 20 Nov 2024 00:15:05 -0600 Subject: [PATCH 1/2] Add teams page. --- src/content/menus/header.yaml | 2 ++ src/pages/teams.astro | 46 +++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 src/pages/teams.astro diff --git a/src/content/menus/header.yaml b/src/content/menus/header.yaml index 2a88869668..c16fcb7bd4 100644 --- a/src/content/menus/header.yaml +++ b/src/content/menus/header.yaml @@ -9,6 +9,8 @@ items: link: /values - name: Community link: /community + - name: Teams + link: /teams - name: Blog link: /blog - name: Donate diff --git a/src/pages/teams.astro b/src/pages/teams.astro new file mode 100644 index 0000000000..e9bb3e70d7 --- /dev/null +++ b/src/pages/teams.astro @@ -0,0 +1,46 @@ +--- +import { getEntry, getCollection } from "astro:content"; +import { Image } from "astro:assets"; + +import Layout from "../layouts/Layout.astro"; +import PageHeader from "../components/layout/PageHeader.astro"; +import Container from "../components/layout/Container.astro"; +import Divider from "../components/layout/Divider.astro"; +import Button from "../components/ui/Button.astro"; +import OfficialCommunityLink from "../components/pages/community/OfficialCommunityLink.astro"; +import UnofficialCommunityLink from "../components/pages/community/UnofficialCommunityLink.astro"; + +const teams = await getCollection("teams"); + +import nixosFoundationLogo from "../assets/image/nixos-foundation-logo.svg"; +--- + + + + +
+ { + teams.map((team) => ( +
+ {`${team.data.name} +

{team.data.name}

+

+ {team.data.description} +

+ +
+ )) + } +
+
+
From 0fdcb1bd03e141ad718432366d5858e30b2ce030 Mon Sep 17 00:00:00 2001 From: crertel Date: Wed, 20 Nov 2024 00:15:16 -0600 Subject: [PATCH 2/2] Remove teams from community page. --- src/pages/community.astro | 181 +++++++++++++++++--------------------- 1 file changed, 79 insertions(+), 102 deletions(-) diff --git a/src/pages/community.astro b/src/pages/community.astro index df61bddeef..e22c809320 100644 --- a/src/pages/community.astro +++ b/src/pages/community.astro @@ -411,111 +411,88 @@ import nixosFoundationLogo from "../assets/image/nixos-foundation-logo.svg";
- -

- Teams -

-
    - { - teams.map((team) => ( -
  • - {`${team.data.name} -

    {team.data.name}

    -

    - {team.data.description} -

    - -
  • - )) - } -
-
-
- - -
-
- NixOS Foundation Logo + +
+
+ NixOS Foundation Logo +
+
+

+ Board members: +

+
    + { + teams + .filter( + (team) => team.slug.split("_")[1] === "foundation-board", + )[0] + .data.members.map((member) => ( +
  • + {member.name} + {member.title && ( + <> + — + {member.title} + + )} +
  • + )) + } +
+
-
-

- Board members: -

-
    - { - teams - .filter( - (team) => team.slug.split("_")[1] === "foundation-board", - )[0] - .data.members.map((member) => ( -
  • - {member.name} - {member.title && ( - <> - — - {member.title} - - )} -
  • - )) - } +
    +

    The mission!

    +

    + The mission of the foundation is to support the Nix ecosystem's + infrastructure, and projects implementing the purely functional + deployment model. +

    +

    + In particular, the foundation supports Nix, Nixpkgs, NixOS, and + operates: +

    +
      +
    • + + cache.nixos.org + - the NixOS binary cache, containing over 120TB of prebuilt Nix packages. +
    • +
    • + + hydra.nixos.org + - a Nix build farm, consisting of hundreds of macOS, x86-64 (Linux) and + aarch64 (Linux) build cores. Hydra executes over 350,000 builds each + week. +
    • +
    • + + Event Funding +
    +

    + The NixOS Foundation is a registered non-profit organisation at the + Chamber of commerce (Kamer van Koophandel) in Utrecht, The + Netherlands. The KvK number is 63520583. +

    +

    + You can contact the foundation by writing an email to foundation@nixos.org. +

    -
-
-

- The mission! -

-

- The mission of the foundation is to support the Nix ecosystem's - infrastructure, and projects implementing the purely functional - deployment model. -

-

- In particular, the foundation supports Nix, Nixpkgs, NixOS, and - operates: -

-
    -
  • - cache.nixos.org - - the NixOS binary cache, containing over 120TB of prebuilt Nix packages. -
  • -
  • - hydra.nixos.org - - a Nix build farm, consisting of hundreds of macOS, x86-64 (Linux) and - aarch64 (Linux) build cores. Hydra executes over 350,000 builds each week. -
  • -
  • - Event Funding -
  • -
-

- The NixOS Foundation is a registered non-profit organisation at the - Chamber of commerce (Kamer van Koophandel) in Utrecht, The Netherlands. - The KvK number is 63520583. -

-

- You can contact the foundation by writing an email to foundation@nixos.org. -

-
-
+ +