diff --git a/swa/src/layouts/Layout.astro b/swa/src/layouts/BaseLayout.astro similarity index 75% rename from swa/src/layouts/Layout.astro rename to swa/src/layouts/BaseLayout.astro index 39bc6d3..3ac8977 100644 --- a/swa/src/layouts/Layout.astro +++ b/swa/src/layouts/BaseLayout.astro @@ -3,9 +3,11 @@ import "../styles/base.css"; interface Props { title: string; + description?: string; + keywords?: string; } -const { title } = Astro.props; +const { title, description, keywords } = Astro.props; --- @@ -13,8 +15,8 @@ const { title } = Astro.props; {title} - - + + diff --git a/swa/src/layouts/BlogPost.astro b/swa/src/layouts/BlogPost.astro index 18a0630..9a98cc5 100644 --- a/swa/src/layouts/BlogPost.astro +++ b/swa/src/layouts/BlogPost.astro @@ -1,22 +1,18 @@ --- -import "../styles/base.css"; +import BaseLayout from '@layouts/BaseLayout.astro'; +import "@styles/base.css"; import "remark-github-blockquote-alert/alert.css"; // 1. The frontmatter prop gives access to frontmatter and other data const { frontmatter } = Astro.props; --- - - - {frontmatter.title} - - - - - - - - - -
+ + + +

{frontmatter.title}

@@ -37,8 +33,7 @@ const { frontmatter } = Astro.props; © {new Date().getFullYear()} {frontmatter.author} — All rights reserved.
- - +