Breadcrumb for each search result

How can I create a breadcrumb for each search result?
The KirbyCMS site for example is using this for their Docs search.
What I know is, that the breadcrumb() function is only available on the $site object.
Thanks for your help.

Why not have a look at the code of :wink:

There’s a page method called parents:


It will return a collection of all parent pages and is ideal to build a breadcrumb. The $site->breadcrumb() method is using that as well.


Thank you very much. That was both very helpful!