useSite #

The site data of the current route: title, base and theme config with the current locale applied.

Usage #

TypeScript
import { 
useSite
} from 'kawapress/client'
const
site
=
useSite
()
const
title
=
site
.
value
.
title

Returns The site data, which changes when the route moves to another locale.

Full type signature
TypeScript
function useSite(): ComputedRef<ResolvedSiteData>

Edit this page

Comments