site

The current site being targeted in the request.

It’s a Statamic\Sites\Site object and can be used as a single tag or tag pair.

// config/statamic/sites.php

'sites' => [
    'default' => [
        'name' => 'My Statamic Site',
        'locale' => 'en_US',
        'url' => 'http://mysite.com/',
    ]
]

As a single tag, it will output the handle of the site:

{{ site }}
default

As a tag pair, you can access additional information:

{{ site }}
    {{ handle }}
    {{ name }}
    {{ locale }}
    {{ short_locale }}
    {{ url }}
{{ /site }}
default
My Statamic Site
en_US
en
http://mysite.com/

You can also access those variables directly as single tags:

{{ site:name }}
My Statamic Site
Betterify this page on Github!