2025-06-18 07:46:59 -04:00
|
|
|
---
|
|
|
|
interface Props {
|
|
|
|
title?: string;
|
|
|
|
description?: string;
|
|
|
|
image?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
import { metaData } from "../config";
|
|
|
|
import { SEO } from "astro-seo";
|
|
|
|
import { JoyUIRootIsland } from "./Components"
|
2025-07-17 06:55:01 -04:00
|
|
|
import { useHtmlThemeAttr } from "../hooks/useHtmlThemeAttr";
|
2025-07-16 10:06:41 -04:00
|
|
|
import { usePrimeReactThemeSwitcher } from "../hooks/usePrimeReactThemeSwitcher";
|
|
|
|
|
2025-06-18 07:46:59 -04:00
|
|
|
const { title, description = metaData.description, image } = Astro.props;
|
|
|
|
|
|
|
|
const { url, site } = Astro;
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
<SEO
|
|
|
|
title={title}
|
|
|
|
titleTemplate=`%s | ${metaData.title}`
|
|
|
|
titleDefault={metaData.title}
|
|
|
|
description={description}
|
|
|
|
charset="UTF-8"
|
|
|
|
openGraph={{
|
|
|
|
basic: {
|
|
|
|
title: title || metaData.title,
|
|
|
|
type: "website",
|
2025-08-09 07:10:04 -04:00
|
|
|
image: "",
|
2025-06-18 07:46:59 -04:00
|
|
|
url: url,
|
|
|
|
},
|
|
|
|
optional: {
|
|
|
|
description,
|
|
|
|
siteName: "codey.lol",
|
|
|
|
locale: "en_US",
|
|
|
|
},
|
|
|
|
}}
|
|
|
|
extend={{
|
|
|
|
// extending the default link tags
|
|
|
|
link: [{ rel: "icon", href: "https://codey.lol/images/favicon.png" }],
|
|
|
|
}}
|
2025-07-16 10:06:41 -04:00
|
|
|
/>
|
|
|
|
|