---
// Import the global.css file here so that it is included on
// all pages through the use of the component.
import '../styles/global.css';
import { SITE_TITLE } from '../consts';
import type { ImageMetadata } from 'astro';
interface Props {
title: string;
description: string;
image?: ImageMetadata;
}
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
const blogTagMatch = Astro.url.pathname.match(/blog\/tag\/(\w+)/);
const rssUrl =
blogTagMatch
? new URL(`blog/tag/${blogTagMatch[1]}.rss.xml`, Astro.site)
: new URL(`rss.xml`, Astro.site);
const { title, description, image } = Astro.props;
---