forked from Fediversity/Fediversity
sort news by date
This commit is contained in:
parent
0e2c56b08e
commit
80a0b1ea91
|
@ -49,9 +49,14 @@ in
|
||||||
|
|
||||||
# News
|
# News
|
||||||
|
|
||||||
${lib.concatStringsSep "\n" (map (article: ''
|
${
|
||||||
|
let
|
||||||
|
sorted = with lib; reverseList (sortOn (entry: entry.date) config.collections.news.entry);
|
||||||
|
in
|
||||||
|
lib.join "\n" (map (article: ''
|
||||||
- ${article.date} [${article.title}](./${article})
|
- ${article.date} [${article.title}](./${article})
|
||||||
'') config.collections.news.entry)}
|
'') sorted)
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue