feat(tazjin/atom-feed): Add Nix functions for generating an Atom feed

This only adds the feed generation functions, but does not yet wire it
up to the blog content.

This was implemented against
https://validator.w3.org/feed/docs/atom.html and I've validated some
generated example feeds with the W3 validator.

Change-Id: Ide3ea90d3fa935047506aa87169100c2ead21284
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1709
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
Vincent Ambo 2020-08-10 21:53:19 +01:00 committed by tazjin
parent 906f5c1d2d
commit 916dba43e7
2 changed files with 141 additions and 1 deletions

View file

@ -5,7 +5,8 @@
# An entire post is rendered by `renderPost`, which assembles the
# fragments together in a runCommand execution.
#
# The post index is generated by //web/homepage, not by this code.
# The post index is generated by //users/tazjin/homepage, not by this
# code.
{ depot, lib, ... }:
let