list all news articles on a separate page

This commit is contained in:
Valentin Gagarin 2024-11-13 15:24:41 +01:00 committed by Valentin Gagarin
parent 23462e3110
commit 9e97ca3f14
7 changed files with 41 additions and 15 deletions

View file

@ -19,21 +19,8 @@ in
} }
{ page = pages.fediversity; } { page = pages.fediversity; }
{ page = pages.grants; } { page = pages.grants; }
{ { page = pages.news; }
menu.label = "News"; { page = pages.events; }
menu.items =
let
sorted = with lib; reverseList (sortOn (entry: entry.date) config.collections.news.entry);
in
map
(page: {
page = lib.recursiveUpdate page { title = "${page.date}: ${page.title}"; };
})
(lib.take 3 sorted);
}
{
page = pages.events;
}
]; ];
}; };
} }

24
website/content/news.nix Normal file
View file

@ -0,0 +1,24 @@
{ config, lib, ... }:
{
pages.news = { link, ... }: rec {
title = "News";
description = "News about Fediversity";
summary = description;
body =
with lib;
let
news = map
(article: ''
## [${article.title}](${link article})
${article.date} by ${article.author}
${article.summary}
'')
config.collections.news.entry;
in
''
${join "\n\n" news}
'';
};
}

View file

@ -5,6 +5,9 @@
description = "Report from the NORDUnet Conference 2024"; description = "Report from the NORDUnet Conference 2024";
date = "2024-09-17"; date = "2024-09-17";
author = "Laurens Hof"; author = "Laurens Hof";
summary = ''
Fediversity was represented in Bergen at the Nordunet Conference for 2024, with both the Internet Discourse Foundation and Nordunet themselves being present.
'';
body = '' body = ''
Fediversity was represented in Bergen at the Nordunet Conference for 2024, with both the Internet Discourse Foundation and Nordunet themselves being present. This was a great opportunity for the different organisations in the consortium to meet with each other and exchange ideas. Fediversity was represented in Bergen at the Nordunet Conference for 2024, with both the Internet Discourse Foundation and Nordunet themselves being present. This was a great opportunity for the different organisations in the consortium to meet with each other and exchange ideas.

View file

@ -5,6 +5,9 @@
description = "The Fediversity project has officially been announced"; description = "The Fediversity project has officially been announced";
date = "2024-01-01"; date = "2024-01-01";
author = "Laurens Hof"; author = "Laurens Hof";
summary = ''
We are pleased to introduce the launch of our new website dedicated to the Fediversity project.
'';
body = '' body = ''
The Consortium behind the Fediversity project announces that the project has officially been started. NLnet, Tweag, NorduNet and the Open Internet Discourse Foundation are working together to build a new service for cloud hosters. The Consortium behind the Fediversity project announces that the project has officially been started. NLnet, Tweag, NorduNet and the Open Internet Discourse Foundation are working together to build a new service for cloud hosters.

View file

@ -5,6 +5,9 @@
description = "Report from the PublicSpaces Conference 2024 - 'Take Back the Internet'"; description = "Report from the PublicSpaces Conference 2024 - 'Take Back the Internet'";
date = "2024-07-30"; date = "2024-07-30";
author = "Laurens Hof"; author = "Laurens Hof";
summary = ''
PublicSpaces and Waag Futurelabs recently held their yearly conference in Amsterdam, titled Taking Back the Internet
'';
body = '' body = ''
PublicSpaces and Waag Futurelabs recently held their yearly conference in Amsterdam, titled 'Taking Back the Internet'. PublicSpaces is a network of public organisations fighting for an internet based on public values. The Fediversity Project attended, to share ideas, and learn more about how people and organisations think about an ethical internet. If you are interested, you can view all sessions [here](https://conference.publicspaces.net/en/archive/pubconf2024) (hosted on PeerTube!). PublicSpaces and Waag Futurelabs recently held their yearly conference in Amsterdam, titled 'Taking Back the Internet'. PublicSpaces is a network of public organisations fighting for an internet based on public values. The Fediversity Project attended, to share ideas, and learn more about how people and organisations think about an ethical internet. If you are interested, you can view all sessions [here](https://conference.publicspaces.net/en/archive/pubconf2024) (hosted on PeerTube!).

View file

@ -5,6 +5,9 @@
description = "Fediversity tech session - NixOS and Kubernetes"; description = "Fediversity tech session - NixOS and Kubernetes";
date = "2024-08-05"; date = "2024-08-05";
author = "Laurens Hof"; author = "Laurens Hof";
summary = ''
Recently Fediversity hosted a tech session on NixOS and Kubernetes. We invited people within the community to discuss some design considerations of the Fediversity project with us.
'';
body = '' body = ''
Recently Fediversity hosted a tech session on NixOS and Kubernetes. We invited people within the community to discuss some design considerations of the Fediversity project with us. Recently Fediversity hosted a tech session on NixOS and Kubernetes. We invited people within the community to discuss some design considerations of the Fediversity project with us.

View file

@ -5,6 +5,9 @@
description = "Announcing our new website for the Fediversity project"; description = "Announcing our new website for the Fediversity project";
date = "2024-05-15"; date = "2024-05-15";
author = "Laurens Hof"; author = "Laurens Hof";
summary = ''
We are pleased to introduce the launch of our new website dedicated to the Fediversity project.
'';
body = '' body = ''
We are pleased to introduce the launch of our new website dedicated to the Fediversity project. We are pleased to introduce the launch of our new website dedicated to the Fediversity project.