Add series links

This commit is contained in:
Nathan McCarty 2025-02-09 02:43:22 -05:00
parent d170a2fccf
commit 4793d660e2
6 changed files with 54 additions and 10 deletions

View file

@ -13,3 +13,12 @@ has Str:D $.desc is required;
#| The ids of the posts in the series, in series order
has Int:D @.post-ids is rw = [];
#| Returns true if this series contains the given post id
method contains-post(Int:D $post-id --> Bool:D) {
if $post-id ~~ any @!post-ids {
True
} else {
False
}
}