diff --git a/website/content/default.nix b/website/content/default.nix index 6f1a0e20..88e07232 100644 --- a/website/content/default.nix +++ b/website/content/default.nix @@ -49,9 +49,14 @@ in # News - ${lib.concatStringsSep "\n" (map (article: '' - - ${article.date} [${article.title}](./${article}) - '') config.collections.news.entry)} + ${ + 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) + } ''; }; }