From 5fab0381b308eb5a1c837ffdd5e0ddd757e769d3 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 24 Jan 2024 22:50:02 -0500 Subject: Starting to work on blog --- src/layouts/BlogPost.astro | 50 ++++++++++++++++++++++++++++++++++++++++++ src/layouts/Default.astro | 17 ++++++++++---- src/layouts/PageMarkdown.astro | 8 ++++--- 3 files changed, 68 insertions(+), 7 deletions(-) create mode 100644 src/layouts/BlogPost.astro (limited to 'src/layouts') diff --git a/src/layouts/BlogPost.astro b/src/layouts/BlogPost.astro new file mode 100644 index 0000000..60baee6 --- /dev/null +++ b/src/layouts/BlogPost.astro @@ -0,0 +1,50 @@ +--- +import Layout from './Default.astro'; +const { title, description } = Astro.props; +--- + + +
+

{title}

+

{description}

+
+
+
+
+ +
+
+
+
+ + diff --git a/src/layouts/Default.astro b/src/layouts/Default.astro index cc05e25..185a807 100644 --- a/src/layouts/Default.astro +++ b/src/layouts/Default.astro @@ -4,7 +4,7 @@ interface Props { description: string; } -const { title, description } = Astro.props; +const { title = "Andrew Lee", description = "Andrew Lee Website" } = Astro.props; import { ViewTransitions, slide } from 'astro:transitions'; import Navbar from '../components/Navbar.vue'; --- @@ -13,17 +13,25 @@ import Navbar from '../components/Navbar.vue'; - - + + + + + + + + - + + + {title} @@ -33,6 +41,7 @@ import Navbar from '../components/Navbar.vue';
+

Made with {Astro.generator} and Hosted on Vercel

Copyright © 2024 Andrew Lee

diff --git a/src/layouts/PageMarkdown.astro b/src/layouts/PageMarkdown.astro index 1250dd5..f6e76ab 100644 --- a/src/layouts/PageMarkdown.astro +++ b/src/layouts/PageMarkdown.astro @@ -9,9 +9,11 @@ const { frontmatter } = Astro.props;

{frontmatter.description}

-
- -
+
+
+ +
+
-- cgit v1.2.3