Fediversity/website/content/news.nix

25 lines
493 B
Nix
Raw Normal View History

{ config, lib, ... }:
{
2025-02-19 18:34:19 +01:00
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}
2025-02-19 18:34:19 +01:00
'') config.collections.news.entry;
in
''
${join "\n\n" news}
'';
};
}