site()

Returns the site object in any situation

  • return ($site)

Example

<?= site()->title() ?>