$site->page()
Returns the current page if $path
is not specified. Otherwise it will try to find a page by the given path.
Parameters
Name | Type | Default | Description |
---|---|---|---|
$path | string |
null |
omit for current page, otherwise e.g. notes/across-the-ocean |
Return type
Kirby\Cms\Page
|null