---
import { getImage } from "astro:assets";
import { OG, SEO, SITE } from "@/data_files/constants";
// Default properties for the Meta component. These values are used if props are not provided.
// 'meta' sets a default description meta tag to describe the page content.
// 'structuredData' defines default structured data in JSON-LD format to enhance search engine understanding of the page (for SEO purposes).
const defaultProps = {
meta: SITE.description,
structuredData: SEO.structuredData,
};
// Extract props with default values assigned from defaultProps. Values can be overridden when the component is used.
// For example:
//
const { meta = defaultProps.meta, structuredData = defaultProps.structuredData } = Astro.props;
// Define the metadata for your website and individual pages
const URL = `${Astro.site}`; // Set the website URL in astro.config.mjs
const author = SITE.author;
const ogTitle = OG.title;
const ogDescription = OG.description;
const socialImage: string = `${Astro.site}/social.png`; // Set the path for the social media image
---
{structuredData && (
)}