Skip to content

Commit

Permalink
there.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbloxhub committed Jul 22, 2023
1 parent f7d7b37 commit c261a93
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
15 changes: 10 additions & 5 deletions src/layouts/MarkdownPostLayout.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
---
const { frontmatter } = Astro.props;
import Layout from "./Layout.astro"
const { frontmatter } = Astro.props
---
<h1>{frontmatter.title}</h1>
<p>Written by {frontmatter.author}</p>
<p>Published {frontmatter.pubDate}</p>
<slot />
<Layout title={frontmatter.title}>
<main class="m-auto p-6 max-w-6xl text-left">
<h1>{frontmatter.title}</h1>
<p>Written by {frontmatter.author}</p>
<p>Published {frontmatter.pubDate}</p>
<slot />
</main>
</Layout>
12 changes: 2 additions & 10 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,7 @@ import Layout from "../layouts/Layout.astro"
---

<Layout title="bitbloxhub's website">
<main class="m-auto p-6 max-w-6xl text-center">
<h1>Welcome to bitbloxhub's website</h1>
<main class="m-auto p-6 max-w-6xl text-left">
<h1 class="text-5xl font-extrabold m-0">Welcome to bitbloxhub's website</h1>
</main>
</Layout>

<style>
h1 {
font-size: 3rem;
font-weight: 800;
margin: 0;
}
</style>

0 comments on commit c261a93

Please sign in to comment.