Skip to content

Commit

Permalink
Changes to client
Browse files Browse the repository at this point in the history
  • Loading branch information
emgardner committed Jan 18, 2024
1 parent 7565290 commit 373381f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ tags:
title: How i am using Obsidian for my blog
date: 01-12-2023
---
## This Is Great

I've been wanting to write more blog articles mostly for three reasons:

- I believe writing will help clarify my thought's and cement my knowledge.
Expand Down
10 changes: 9 additions & 1 deletion src/layouts/PostLayout.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
---
import BaseLayout from './BaseLayout.astro';
interface Props {
title: string;
}
const { title } = Astro.props;
---
<BaseLayout>
<BaseLayout
title={title}
>
<div class="flex flex-col w-full items-center">
<article class="
prose prose-invert
Expand Down
2 changes: 1 addition & 1 deletion src/pages/about.astro
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@ const title = "About"
margin: 0px;
}

</style>
</style>
4 changes: 2 additions & 2 deletions src/pages/posts/[post].astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ export async function getStaticPaths() {
});
}
const title = "Posts"
const { entry } = Astro.props;
const { Content } = await entry.render();
---
<PostLayout
title={title}
title={entry.data.title}
>
<h1>{entry.data.title}</h1>
<Content />
</PostLayout>

Expand Down

0 comments on commit 373381f

Please sign in to comment.