Files
codey.lol/src/components/BaseHead.astro

45 lines
962 B
Plaintext
Raw Normal View History

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"
import { useHtmlThemeAttr } from "../hooks/useHtmlThemeAttr";
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" }],
}}
/>