refactor(tazjin/homepage): long overdue entry list rework

The entry list is now much more condensed. It's maybe a little *too*
condensed, but already closer to what I'm looking for.

Note: A new "note" post type has snuck in and can now be used for
random musings or comments on previous entries. Notes do not show up
in the Atom feed.

Change-Id: I920c0c7650937474b8a5f30cba78416554d523ce
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8806
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2023-06-16 02:18:18 +03:00 committed by clbot
parent 0b2f5510ed
commit d8d0b17823
6 changed files with 113 additions and 116 deletions

View file

@ -4,7 +4,7 @@
with depot.nix.yants;
let
inherit (builtins) map readFile;
inherit (builtins) filter map readFile;
inherit (lib) max singleton;
inherit (pkgs) writeText;
inherit (depot.web) blog atom-feed;
@ -23,7 +23,7 @@ let
});
allEntries = (with depot.users.tazjin.blog; map (blog.toFeedEntry config) posts)
++ (map pageEntryToEntry pageEntries);
++ (map pageEntryToEntry (filter (e: e.class != "note") pageEntries));
feed = {
id = "https://tazj.in/";