From ed0738d085dfb05d8e6cf9743868172c94d78236 Mon Sep 17 00:00:00 2001 From: Korbs Date: Wed, 1 Jan 2025 18:58:01 -0500 Subject: [PATCH] Add new Head component --- index.ts | 3 ++- src/Head.astro | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 src/Head.astro diff --git a/index.ts b/index.ts index 41f7f72..2379aec 100644 --- a/index.ts +++ b/index.ts @@ -6,8 +6,9 @@ import Hero from "./src/blocks/Hero.astro" import Banner from "./src/Banner.astro" import BlogPost from "./src/BlogPost.astro"; import Card from "./src/Card.astro"; +import Head from "./src/Head.astro"; import Header from "./src/Header.astro"; import Image from "./src/Image.astro"; // Export -export {Banner, BlogPost, Card, CallToAction, Image, Header, Hero} \ No newline at end of file +export {Banner, BlogPost, Card, CallToAction, Image, Head, Header, Hero} \ No newline at end of file diff --git a/src/Head.astro b/src/Head.astro new file mode 100644 index 0000000..cf364b3 --- /dev/null +++ b/src/Head.astro @@ -0,0 +1,27 @@ +--- +const { + Title, + Description, + DarkReaderLock = 'false', + ThemeColor = '#121212', + Favicon +} = Astro.props +--- + + + + {Title} + + + + {DarkReaderLock ? : null} + + + + + + + + + + \ No newline at end of file