Format atom feed

This commit is contained in:
Nathan McCarty 2025-02-06 18:39:20 -05:00
parent 68530c58d9
commit b1ec578902
2 changed files with 12 additions and 1 deletions

View file

@ -6,6 +6,7 @@ unit module DB;
use Pandoc;
use JSON::Class:auth<zef:vrurg>;
use XML;
use XQ;
use DB::Post;
use DB::BlogMeta;
@ -101,7 +102,7 @@ class PostDB {
# Render the rss/atom feed
my $atom-path = $out-dir.add('atom.xml');
my $atom = posts-to-atom self;
$atom-path.spurt: ~$atom;
$atom-path.spurt: format-xml(~$atom);
}
#| Get a list of posts sorted by date