forked from Fediversity/fediversity.eu
25 lines
481 B
Nix
25 lines
481 B
Nix
|
{ 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}
|
||
|
'';
|
||
|
};
|
||
|
}
|