Basci atom feed generation
This commit is contained in:
parent
7d5cbfba3c
commit
53c0c6a9d6
6 changed files with 101 additions and 7 deletions
|
@ -43,6 +43,15 @@ has Bool:D $.hidden is json is rw = False;
|
|||
#| document produced it
|
||||
method title(--> Str:D) {...}
|
||||
|
||||
#| The time the post was last updated at
|
||||
method updated(--> DateTime:D) {
|
||||
if @!edited-at {
|
||||
@!edited-at.max
|
||||
} else {
|
||||
$!posted-at
|
||||
}
|
||||
}
|
||||
|
||||
#| Get the list of slugs for this post, including ones auto generated from
|
||||
#| the title, as well as any additional slugs
|
||||
method all-slugs(--> Array[Str:D]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue