Add series links

This commit is contained in:
Nathan McCarty 2025-02-09 02:43:22 -05:00
parent d170a2fccf
commit 4793d660e2
6 changed files with 54 additions and 10 deletions

View file

@ -112,7 +112,7 @@ class PostDB {
mkdir $by-slug unless $by-slug.e;
# Render all the posts and make symlinks
for %!posts.kv -> $id, $post {
my $html = $config.generate-post: $post, $!meta;
my $html = $config.generate-post: $id, $post, self;
my $id-path = $by-id.add: "$id.html";
$id-path.spurt: $html;
for $post.all-slugs -> $slug {