Description generation

This commit is contained in:
Nathan McCarty 2025-02-04 16:51:37 -05:00
parent 804b51aaa6
commit ce364c01d8
6 changed files with 102 additions and 33 deletions

View file

@ -78,9 +78,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.title, $post.render-html, $!meta;
my $html = $config.generate-post: $post, $!meta;
my $id-path = $by-id.add: "$id.html";
$id-path.spurt: $html;
for $post.all-slugs -> $slug {