fediversity.eu/content/default.nix

63 lines
1.3 KiB
Nix
Raw Normal View History

2024-10-11 21:38:57 +02:00
{ config, lib, ... }:
2024-10-11 17:11:48 +02:00
let
inherit (config) pages;
in
{
imports = [
./grants.nix
2024-10-11 18:13:15 +02:00
./fediversity.nix
2024-10-11 18:27:05 +02:00
]
++
2024-10-11 21:38:57 +02:00
lib.fileset.toList ./partners
++
lib.fileset.toList ./news
2024-10-11 18:27:05 +02:00
;
2024-10-11 17:11:48 +02: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-10-11 18:13:15 +02:00
${pages.fediversity.summary}
[Learn more about Fediversity](${pages.fediversity})
2024-10-11 17:11:48 +02:00
# Fediversity grants
${pages.grants.summary}
2024-10-12 01:21:48 +02:00
[Learn more about Fediversity grants](${pages.grants})
2024-10-11 18:18:34 +02: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}
2024-10-12 01:21:48 +02:00
[Read more about ${partner.title}](${partner})
2024-10-11 18:18:34 +02:00
'') (with pages; [ nlnet oid tweag nordunet ]))}
2024-10-11 21:38:57 +02:00
# News
2024-10-12 01:17:38 +02:00
${
let
sorted = with lib; reverseList (sortOn (entry: entry.date) config.collections.news.entry);
in
lib.join "\n" (map (article: ''
2024-10-12 01:21:48 +02:00
- ${article.date} [${article.title}](${article})
2024-10-12 01:17:38 +02:00
'') sorted)
}
2024-10-11 17:11:48 +02:00
'';
};
}