Fediversity/website/content/default.nix

52 lines
1.1 KiB
Nix
Raw Normal View History

2024-11-13 15:24:40 +01:00
{ config, ... }:
let
inherit (config) pages;
2024-11-13 15:24:40 +01:00
files = dir:
map (name: dir + /${name}) (with builtins; attrNames (readDir dir));
2024-11-13 15:24:40 +01:00
in
{
imports = [
./grants.nix
2024-11-13 15:24:40 +01:00
./fediversity.nix
2024-11-13 15:24:40 +01:00
]
++
(files ./partners)
;
2024-11-13 15:24:40 +01:00
pages.index = {
title = "Fediversity";
locations = [
"index.html"
];
description = "Fediversity web site";
summary = ''
This web site hosts up-to-date information about the the NGI Zero Fediversity project.
'';
body = ''
# Welcome to the Fediversity project
2024-11-13 15:24:40 +01:00
${pages.fediversity.summary}
[Learn more about Fediversity](${pages.fediversity})
2024-11-13 15:24:40 +01:00
# Fediversity grants
${pages.grants.summary}
[Learn more about our grants](${pages.grants})
2024-11-13 15:24:40 +01:00
# Consortium
The Consortium behind the Fediversity project is a cooperation between NLnet, Open Internet Discourse Foundation, NORDUnet and Tweag.
${toString (map (partner: ''
## ${partner.title}
${partner.description}
[Read more about ${partner.title}](./${partner})
'') (with pages; [ nlnet oid tweag nordunet ]))}
2024-11-13 15:24:40 +01:00
'';
};
}