Fediversity/website/content/default.nix
Valentin Gagarin 212b3647fd more scalable imports
that directory will only grow
2024-11-13 15:47:12 +01:00

55 lines
1.3 KiB
Nix

{ config, lib, ... }:
let
inherit (config) pages;
in
{
imports = with lib.fileset; toList (difference (fileFilter ({ hasExt, ... }: hasExt "nix") ./.) ./default.nix);
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 Fediversity 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
${
let
sorted = with lib; reverseList (sortOn (entry: entry.date) config.collections.news.entry);
in
lib.join "\n" (map (article: ''
- ${article.date} [${article.title}](${article})
'') sorted)
}
'';
};
}