From e4e8e53a074c4b00d38849e2c67cececbec08f7e Mon Sep 17 00:00:00 2001 From: Ash Entwisle Date: Tue, 20 Feb 2024 14:35:40 +0000 Subject: [PATCH] updated layouts Signed-off-by: Ash Entwisle --- src/layouts/Blogpost.astro | 5 ++ src/layouts/Boilerplate.astro | 101 +++++++++++++++++++--------------- src/layouts/Markdown.astro | 19 +++++-- 3 files changed, 76 insertions(+), 49 deletions(-) diff --git a/src/layouts/Blogpost.astro b/src/layouts/Blogpost.astro index d710241..175b791 100644 --- a/src/layouts/Blogpost.astro +++ b/src/layouts/Blogpost.astro @@ -1,4 +1,5 @@ --- +import Markdown from "./Markdown.astro"; const { frontmatter } = Astro.props; @@ -9,3 +10,7 @@ if (frontmatter.draft) { } --- + + + + diff --git a/src/layouts/Boilerplate.astro b/src/layouts/Boilerplate.astro index 9b60f55..9d1a24b 100644 --- a/src/layouts/Boilerplate.astro +++ b/src/layouts/Boilerplate.astro @@ -1,52 +1,67 @@ --- -import Header from '../components/Header.astro'; -import Footer from '../components/Footer.astro'; +import Header from "../components/compound/Header.astro"; +import Footer from "../components/compound/Footer.astro"; + +import "../styles/main.scss"; +//import "../styles.scss"; export interface Props { - title: string; - description: string; - keywords: string[]; + title: string; + description: string; + keywords: string[]; + header: boolean; + footer: boolean; } -const { title, description, keywords } = Astro.props; +const props = Astro.props; -const keywordsString = keywords.join(' '); - -import "../styles.scss" +const keywordsString = props.keywords.join(" "); --- - + - - - - - - - - - - - - - - - - - {title} - - -
-
- -
-