feat(web/tvl): List blog posts on homepage
Change-Id: Ic0ee18466fbaca1a374e7489be640f49571eb9c5
This commit is contained in:
parent
79681c9e21
commit
8318178b5f
1 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
|
||||
<hr>
|
||||
----------------
|
||||
|
||||
## 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?
|
||||
|
||||
|
|
Loading…
Reference in a new issue