From 8318178b5f34bae0d625ada1170006cb2d6a6a51 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 5 Nov 2021 14:34:15 +0100 Subject: feat(web/tvl): List blog posts on homepage Change-Id: Ic0ee18466fbaca1a374e7489be640f49571eb9c5 --- web/tvl/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'web') diff --git a/web/tvl/default.nix b/web/tvl/default.nix index be0981eec2..ee012ca409 100644 --- a/web/tvl/default.nix +++ b/web/tvl/default.nix @@ -7,6 +7,9 @@ let inherit (pkgs) graphviz runCommandNoCC writeText; inherit (depot.web) atom-feed blog tvl; + listPosts = defun [ (list blog.post) string ] (posts: + lib.concatStringsSep "\n" (map (p: "* [${p.title}](blog/${p.key})") posts) + ); postRenderingCommands = defun [ (list blog.post) string ] (posts: lib.concatStringsSep "\n" @@ -71,7 +74,17 @@ let [tvl-xmpp]: xmpp:#tvl@irc.hackint.org?join [tvl-webchat]: https://webirc.hackint.org/#ircs://irc.hackint.org/#tvl -
+ ---------------- + + ## Blog + + Here are the most recent TVL blog posts. + + ${listPosts publishedPosts} + + You can also follow our [atom feed](https://tvl.fyi/feed.atom). + + ---------------- ## Where did all these people come from? -- cgit 1.4.1