From c6dbbbb0692b9521bf01ba09203e3228ac9adea9 Mon Sep 17 00:00:00 2001 From: Le Minh Tri Date: Thu, 23 Feb 2023 22:13:34 +0700 Subject: [PATCH] feat(component): add component SEOMeta --- src/components/SEOMeta.astro | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/components/SEOMeta.astro diff --git a/src/components/SEOMeta.astro b/src/components/SEOMeta.astro new file mode 100644 index 00000000..5a7e882c --- /dev/null +++ b/src/components/SEOMeta.astro @@ -0,0 +1,37 @@ +--- +interface Props { + title: string + description: string | undefined + favicon: string | undefined + faviconMimeType: string | undefined + keywords: string | undefined + author: string | undefined + robots: string | undefined +} + +const { + title, + description, + favicon, + faviconMimeType, + keywords, + author, + robots, +} = Astro.props +--- + + + + + + + +{title} + +{description && } + + +{keywords && } + +{robots && } +