Generate tags page

This commit is contained in:
Nathan McCarty 2025-02-07 01:43:52 -05:00
parent f1515aab06
commit 20ecef3b3f
4 changed files with 138 additions and 3 deletions

View file

@ -105,6 +105,9 @@ class PostDB {
my $about-path = $out-dir.add('about.html');
$about-path.unlink if $about-path.l;
$by-id.add("{$!meta.about-id}.html").symlink: $about-path;
# Generate the tags pages
my @tags = %!posts.values.map(*.tags).flat.unique;
$out-dir.add('tags.html').spurt: $config.generate-tags-page(self, @tags);
# Render the rss/atom feed
my $atom-path = $out-dir.add('atom.xml');
my $atom = posts-to-atom self;