forked from Fediversity/Fediversity
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{ config, lib, ... }:
|
|
let
|
|
inherit (config) pages;
|
|
in
|
|
{
|
|
imports = [
|
|
./grants.nix
|
|
./fediversity.nix
|
|
]
|
|
++
|
|
lib.fileset.toList ./partners
|
|
++
|
|
lib.fileset.toList ./news
|
|
;
|
|
|
|
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
|
|
|
|
${pages.fediversity.summary}
|
|
|
|
[Learn more about Fediversity](${pages.fediversity})
|
|
|
|
# Fediversity grants
|
|
|
|
${pages.grants.summary}
|
|
|
|
[Learn more about our grants](${pages.grants})
|
|
|
|
# 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 ]))}
|
|
|
|
# News
|
|
|
|
${lib.concatStringsSep "\n" (map (article: ''
|
|
- ${article.date} [${article.title}](./${article})
|
|
'') config.collections.news.entry)}
|
|
'';
|
|
};
|
|
}
|