Kirby3 feeds: location for collection

The readme says:

For the default (firehose) syndication feed, you need to ensure that you have a collection and have configured it.

<?php

return function ($site) {
    return $site->find('blog')->children()->listed()->flip();
};

Where do I have to put this code?

Into site/collections/name_of_collection.php

https://getkirby.com/docs/guide/templates/collections

1 Like

My fault: I’ve misread collections for controllers – but now I learned something new. Great addition to Kirby 3 (I hope they weren’t in Kirby 2 already).

And thanks again – have some great eastern holidays.