From e807aec04b4869583df275e3f4b1a78522d152dc 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 --- content/default.nix | 11 ++++++----- content/{ => partners}/nlnet.nix | 0 content/{ => partners}/nordunet.nix | 0 content/{ => partners}/oid.nix | 0 content/{ => partners}/tweag.nix | 0 5 files changed, 6 insertions(+), 5 deletions(-) rename content/{ => partners}/nlnet.nix (100%) rename content/{ => partners}/nordunet.nix (100%) rename content/{ => partners}/oid.nix (100%) rename content/{ => partners}/tweag.nix (100%) diff --git a/content/default.nix b/content/default.nix index 58e66235..96871673 100644 --- a/content/default.nix +++ b/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/content/nlnet.nix b/content/partners/nlnet.nix similarity index 100% rename from content/nlnet.nix rename to content/partners/nlnet.nix diff --git a/content/nordunet.nix b/content/partners/nordunet.nix similarity index 100% rename from content/nordunet.nix rename to content/partners/nordunet.nix diff --git a/content/oid.nix b/content/partners/oid.nix similarity index 100% rename from content/oid.nix rename to content/partners/oid.nix diff --git a/content/tweag.nix b/content/partners/tweag.nix similarity index 100% rename from content/tweag.nix rename to content/partners/tweag.nix