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

View file

@ -8,18 +8,7 @@ use JSON::Class:auth<zef:vrurg>;
use DB::Post;
use DB::BlogMeta;
#| A plain markdown post
class MarkdownPost does Post is json {
#| Marker for disambiguation between post types in json representation, the
#| cheaty way
has Bool:D $.markdown = True;
method title(--> Str:D) {
markdown-title($!source)
}
}
use DB::MarkdownPost;
#| A plain markdown post
class IdrisPost does Post is json {