From 6e575483db88564ffbfa118a7162e2a128c77b8a Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sun, 29 Dec 2024 19:45:53 +0200 Subject: [PATCH] Added some extra metadata to the website --- src/components/Head.astro | 24 ++++++++++++++++++++++++ src/layouts/Blog.astro | 10 ++-------- src/layouts/Terminal.astro | 10 ++-------- 3 files changed, 28 insertions(+), 16 deletions(-) create mode 100644 src/components/Head.astro diff --git a/src/components/Head.astro b/src/components/Head.astro new file mode 100644 index 0000000..d532d80 --- /dev/null +++ b/src/components/Head.astro @@ -0,0 +1,24 @@ +--- +interface Props { + title: string; + description: string; +} + +const { title, description } = Astro.props; +--- + + + + + + + + {title} + + + + + + + + diff --git a/src/layouts/Blog.astro b/src/layouts/Blog.astro index 62f66bc..7394ac1 100644 --- a/src/layouts/Blog.astro +++ b/src/layouts/Blog.astro @@ -1,5 +1,6 @@ --- import Markdown from "@components/Markdown.astro"; +import Head from "@components/Head.astro"; interface Props { title: string; @@ -10,14 +11,7 @@ const { title } = Astro.props; - - - - - - - {title} - +
diff --git a/src/layouts/Terminal.astro b/src/layouts/Terminal.astro index 927b3e6..890d798 100644 --- a/src/layouts/Terminal.astro +++ b/src/layouts/Terminal.astro @@ -1,6 +1,7 @@ --- import "@styles/terminal.css"; import Nav from "@components/Nav.astro"; +import Head from "@components/Head.astro"; interface Props { path: string; @@ -11,14 +12,7 @@ const { path: title } = Astro.props; - - - - - - - /home/kyren/{title} - +