Move MarkdownPost to its own file
This commit is contained in:
parent
3fd900b2d6
commit
f767eeb589
3 changed files with 20 additions and 13 deletions
3
blog
3
blog
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue