🐛 (rss) Only include published/listed articles
All checks were successful
Deploy / deploy (push) Successful in 4s
All checks were successful
Deploy / deploy (push) Successful in 4s
This commit is contained in:
parent
0b1949d8e1
commit
ef1919decf
1 changed files with 6 additions and 1 deletions
|
@ -2,7 +2,12 @@
|
||||||
|
|
||||||
$kirby->response()->type('application/rss+xml');
|
$kirby->response()->type('application/rss+xml');
|
||||||
|
|
||||||
$articles = $page->children()->template('article')->sortBy('date', 'desc')->limit(10);
|
$articles = $page
|
||||||
|
->children()
|
||||||
|
->template('article')
|
||||||
|
->listed()
|
||||||
|
->sortBy('date', 'desc')
|
||||||
|
->limit(10);
|
||||||
|
|
||||||
$writer = new XMLWriter();
|
$writer = new XMLWriter();
|
||||||
$writer->openMemory();
|
$writer->openMemory();
|
||||||
|
|
Loading…
Reference in a new issue