Skip to content

Commit 3c633f7

Browse files
committed
cleanup of blog system
1 parent 9dd0cd5 commit 3c633f7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/app/blog/[slug]/page.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,18 @@ export default async function Page({
3131
<Header />
3232

3333
<div className="w-full">
34+
<Link href="/blog" className="text-gray-500 hover:text-gray-700">← Back to all posts</Link>
35+
3436
<h1 className="text-2xl font-bold">{post.title}</h1>
3537
<p className="p-0 m-0">Published on {new Date(post.published).toLocaleDateString("en-US", {
3638
weekday: "long",
3739
year: "numeric",
3840
month: "long",
3941
day: "numeric",
40-
})}
42+
})}.
4143
</p>
4244
<div
43-
className="mt-4"
45+
className="mt-4 postcontainer"
4446
dangerouslySetInnerHTML={{ __html: post.post }}
4547
/>
4648
</div>

src/app/blog/posts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ h3 {
177177
cursor: pointer;
178178
}
179179
180-
p {
180+
.postcontainer > p {
181181
margin: 1em 0;
182182
line-height: 1.6;
183183
font-size: 16px;

0 commit comments

Comments
 (0)