---
import { siteConfig } from "../../config/site";
const { title, description } = Astro.props;
const formattedTitle = title ? `${title} - Deco CMS` : "Deco CMS";
const metaDescription = description || siteConfig.description;
const ogImage = siteConfig.ogImage;
---

<title>{formattedTitle}</title>
<meta name="description" content={metaDescription} />
<meta property="og:title" content={formattedTitle} />
<meta property="og:description" content={metaDescription} />
<meta property="og:site_name" content="Deco CMS" />
<meta property="og:image" content={ogImage} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={formattedTitle} />
<meta name="twitter:description" content={metaDescription} />
<meta name="twitter:image" content={ogImage} />
<link rel="icon" type="image/x-icon" href="/favicon.ico">