From 338bcf12e0b7bbd6e587ec992e62860642856e80 Mon Sep 17 00:00:00 2001 From: "houston[bot]" Date: Sat, 22 Jul 2023 12:57:20 -0700 Subject: Initial commit from Astro --- src/components/BaseHead.astro | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/components/BaseHead.astro (limited to 'src/components/BaseHead.astro') diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro new file mode 100644 index 0000000..e11d111 --- /dev/null +++ b/src/components/BaseHead.astro @@ -0,0 +1,43 @@ +--- +// Import the global.css file here so that it is included on +// all pages through the use of the component. +import '../styles/global.css'; + +interface Props { + title: string; + description: string; + image?: string; +} + +const canonicalURL = new URL(Astro.url.pathname, Astro.site); + +const { title, description, image = '/placeholder-social.jpg' } = Astro.props; +--- + + + + + + + + + + + +{title} + + + + + + + + + + + + + + + + -- cgit v1.2.3