kirby3-bots is a very lightweight Kirby3 plugin for providing sitemap.xml, sitemap.txt and robots.txt.
You can see some exemplary results here:
It is recommended to define a sitemap collection like this in site/collections/sitemap.php:
return function ($site) {
return $site->pages()->index()->filterBy('noindex', '!=', 'enabled');
};
You can read more in Kirby’s documentation: https://getkirby.com/docs/guide/templates/collections.
Otherwise the plugin uses a fallback:
site()->pages()->index();