From 33c9464dad0979b05323e4d508875ad47e1c425f Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 12 Sep 2024 22:57:55 +0000 Subject: Refactor Analytics and Head components --- src/components/Head.astro | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/components/Head.astro') diff --git a/src/components/Head.astro b/src/components/Head.astro index 7a575a9..9d7f39c 100644 --- a/src/components/Head.astro +++ b/src/components/Head.astro @@ -1,18 +1,18 @@ --- type Props = { - readonly description?: string; - readonly title?: string; + readonly description: string; + readonly title: string; }; const canonicalURL = new URL(Astro.url.pathname, Astro.site); -const { title, description } = Astro.props; +const { description, title } = Astro.props; --- - + @@ -20,5 +20,5 @@ const { title, description } = Astro.props; - {title ?? import.meta.env.DEFAULT_TITLE} + {title} -- cgit v1.2.3