Move MarkdownPost to its own file

This commit is contained in:
Nathan McCarty 2025-01-22 20:49:27 -05:00
parent 3fd900b2d6
commit f767eeb589
3 changed files with 20 additions and 13 deletions

3
blog
View file

@ -2,6 +2,7 @@
use v6.e.PREVIEW;
use DB;
use DB::MarkdownPost;
my %*SUB-MAIN-OPTS =
:named-anywhere,
@ -83,7 +84,7 @@ multi MAIN(
my $db = load-db $db-file;
my $id =
$db.insert-post:
DB::MarkdownPost.new(
MarkdownPost.new(
source => $source.absolute.IO,
posted-at => $posted-at,
hidden => $hidden,