This commit is contained in:
parent
41640e0b28
commit
b36abcd3bf
12 changed files with 86 additions and 8 deletions
|
@ -1,6 +1,8 @@
|
|||
<?php
|
||||
|
||||
return function ($page, $tag, $category) {
|
||||
use Kirby\Cms\Page;
|
||||
|
||||
return function (Page $page, ?string $tag, ?string $category): array {
|
||||
$articles = $page->children()->listed();
|
||||
|
||||
if ($tag) {
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
<?php
|
||||
|
||||
return function ($page) {
|
||||
use Kirby\Cms\Page;
|
||||
|
||||
return function (Page $page): array {
|
||||
return [
|
||||
'quotes' => $page->children()->listed()->flip()->paginate(20)
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue