Move BlogMeta class to own file
This commit is contained in:
parent
8648ff038d
commit
849f6543c8
1 changed files with 10 additions and 0 deletions
10
lib/DB/BlogMeta.rakumod
Normal file
10
lib/DB/BlogMeta.rakumod
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
use v6.e.PREVIEW;
|
||||||
|
|
||||||
|
use JSON::Class:auth<zef:vrurg>;
|
||||||
|
|
||||||
|
# Top level metadata for the blog
|
||||||
|
unit class BlogMeta is json(:pretty); #| The title of the blog
|
||||||
|
|
||||||
|
has Str:D $.title is required;
|
||||||
|
#| The tagline of the blog
|
||||||
|
has Str:D $.tagline is required;
|
Loading…
Add table
Reference in a new issue