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.titleReturns The site data, which changes when the route moves to another locale.
Full type signature
TypeScript
function useSite(): ComputedRef<ResolvedSiteData>

Comments