2022-08-07 11:37:29 -04:00
|
|
|
/**
|
2023-12-29 17:00:13 -05:00
|
|
|
* Set the page title in the format [title] | [site name].
|
2022-08-07 11:37:29 -04:00
|
|
|
* @param title The title string.
|
|
|
|
*/
|
2022-08-10 20:31:16 -04:00
|
|
|
export function useTitle(title: string, description?: string) {
|
2022-08-10 18:34:01 -04:00
|
|
|
useHead({
|
2023-12-29 17:00:13 -05:00
|
|
|
title: `${title} | Oeufs?`,
|
2022-08-10 20:31:16 -04:00
|
|
|
meta: [
|
|
|
|
{ name: "viewport", content: " width=device-width,initial-scale=1" },
|
2023-12-29 17:00:13 -05:00
|
|
|
{ name: "description", content: description ?? "" },
|
2022-08-12 21:04:50 -04:00
|
|
|
],
|
2022-08-10 18:34:01 -04:00
|
|
|
});
|
2022-08-07 11:37:29 -04:00
|
|
|
}
|