Skip to content

Commit

Permalink
fix css for blog posts
Browse files Browse the repository at this point in the history
  • Loading branch information
ethancedwards8 committed Dec 29, 2024
1 parent bd39d66 commit e0fa70d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
17 changes: 9 additions & 8 deletions pages/blog/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ export default function slug({ frontMatter, source, slug }) {
<meta name="fediverse:creator" content="@[email protected]" />
</Head>

<h1>{frontMatter.title}</h1>
<h3>{dayjs(frontMatter.date).format('MMMM D, YYYY')}</h3>
<h4>{frontMatter.author}</h4>
<hr/>
<main className={styles.content}>
<MDXRemote {...source} components={components}/>
</main>
<hr/>
<div className={styles.content}>
<h1>{frontMatter.title}</h1>
<h3>{dayjs(frontMatter.date).format('MMMM D, YYYY')}</h3>
<h4>{frontMatter.author}</h4>
<hr/>
<main>
<MDXRemote {...source} components={components}/>
</main>
</div>
</>
);
}
Expand Down
3 changes: 2 additions & 1 deletion styles/post.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.content {
padding: 5px;
margin: 0 50px;
padding: 10px;
}

0 comments on commit e0fa70d

Please sign in to comment.