From b435309994a0a5205184033a96e5f128bb7975a2 Mon Sep 17 00:00:00 2001 From: valentin gagarin Date: Wed, 13 Nov 2024 15:24:40 +0100 Subject: [PATCH] put partners in a directory --- website/content/default.nix | 11 ++++++----- website/content/{ => partners}/nlnet.nix | 0 website/content/{ => partners}/nordunet.nix | 0 website/content/{ => partners}/oid.nix | 0 website/content/{ => partners}/tweag.nix | 0 5 files changed, 6 insertions(+), 5 deletions(-) rename website/content/{ => partners}/nlnet.nix (100%) rename website/content/{ => partners}/nordunet.nix (100%) rename website/content/{ => partners}/oid.nix (100%) rename website/content/{ => partners}/tweag.nix (100%) diff --git a/website/content/default.nix b/website/content/default.nix index 58e66235..96871673 100644 --- a/website/content/default.nix +++ b/website/content/default.nix @@ -1,16 +1,17 @@ { config, ... }: let inherit (config) pages; + files = dir: + map (name: dir + /${name}) (with builtins; attrNames (readDir dir)); in { imports = [ ./grants.nix ./fediversity.nix - ./nlnet.nix - ./nordunet.nix - ./tweag.nix - ./oid.nix - ]; + ] + ++ + (files ./partners) + ; pages.index = { title = "Fediversity"; diff --git a/website/content/nlnet.nix b/website/content/partners/nlnet.nix similarity index 100% rename from website/content/nlnet.nix rename to website/content/partners/nlnet.nix diff --git a/website/content/nordunet.nix b/website/content/partners/nordunet.nix similarity index 100% rename from website/content/nordunet.nix rename to website/content/partners/nordunet.nix diff --git a/website/content/oid.nix b/website/content/partners/oid.nix similarity index 100% rename from website/content/oid.nix rename to website/content/partners/oid.nix diff --git a/website/content/tweag.nix b/website/content/partners/tweag.nix similarity index 100% rename from website/content/tweag.nix rename to website/content/partners/tweag.nix