From e435718c4dd6e956dc1748689a6156129650c250 Mon Sep 17 00:00:00 2001 From: "houston[bot]" Date: Sun, 19 Oct 2025 18:30:51 +0200 Subject: Initial commit from Astro --- src/components/BaseHead.astro | 57 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 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..a0f9a7c --- /dev/null +++ b/src/components/BaseHead.astro @@ -0,0 +1,57 @@ +--- +// 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 type { ImageMetadata } from 'astro'; +import FallbackImage from '../assets/blog-placeholder-1.jpg'; +import { SITE_TITLE } from '../consts'; + +interface Props { + title: string; + description: string; + image?: ImageMetadata; +} + +const canonicalURL = new URL(Astro.url.pathname, Astro.site); + +const { title, description, image = FallbackImage } = Astro.props; +--- + + + + + + + + + + + + + + + + + +{title} + + + + + + + + + + + + + + + + -- cgit v1.2.3