From 3376c53b2ee91041d5eaa0f9274da0affd7d4a9d Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 12 Sep 2024 16:36:57 +0000 Subject: Refactor Astro components and layouts --- src/components/Head.astro | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/components/Head.astro') diff --git a/src/components/Head.astro b/src/components/Head.astro index 42ae32b..7a575a9 100644 --- a/src/components/Head.astro +++ b/src/components/Head.astro @@ -1,6 +1,10 @@ --- -const canonicalURL = new URL(Astro.url.pathname, Astro.site); +type Props = { + readonly description?: string; + readonly title?: string; +}; +const canonicalURL = new URL(Astro.url.pathname, Astro.site); const { title, description } = Astro.props; --- -- cgit v1.2.3