Add header links to blog meta
This commit is contained in:
parent
79ee0d4c63
commit
0e87e752d2
3 changed files with 16 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
use v6.e.PREVIEW;
|
||||
|
||||
use JSON::Class:auth<zef:vrurg>;
|
||||
use DB::HeaderLink;
|
||||
|
||||
# Top level metadata for the blog
|
||||
unit class BlogMeta is json(:pretty);
|
||||
|
@ -17,6 +18,9 @@ has Int:D $.placeholder-id is rw = 0;
|
|||
#| The id of the about post
|
||||
has Int:D $.about-id is rw = 0;
|
||||
|
||||
#| Optional list of extra header links
|
||||
has HeaderLink:D @.header-links is rw = [];
|
||||
|
||||
#| The base url of this post
|
||||
has Str:D $.base-url is required;
|
||||
|
||||
|
|
10
lib/DB/HeaderLink.rakumod
Normal file
10
lib/DB/HeaderLink.rakumod
Normal file
|
@ -0,0 +1,10 @@
|
|||
use v6.e.PREVIEW;
|
||||
|
||||
use JSON::Class:auth<zef:vrurg>;
|
||||
|
||||
# Additional header links
|
||||
unit class HeaderLink is json(:pretty);
|
||||
|
||||
has Str:D $.link is required is rw;
|
||||
|
||||
has Str $.icon is rw;
|
Loading…
Add table
Add a link
Reference in a new issue