15 lines
372 B
PHP
15 lines
372 B
PHP
<?php
|
|
/**
|
|
* Collections help with keeping your code DRY
|
|
* if you need to reuse the same set up pages, files or users in multiple places across your site.
|
|
*
|
|
* More about collections:
|
|
* http://getkirby.test/docs/guide/templates/collections
|
|
*/
|
|
return function () {
|
|
return page('notes')
|
|
->children()
|
|
->listed()
|
|
->sortBy('date', 'desc');
|
|
};
|