Skip to content

Commit 7f41d98

Browse files
committed
feat: remove hero block from home page
1 parent 93e460e commit 7f41d98

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

src/components/PostList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type PostListProps = {
77

88
const PostList = ({ posts }: PostListProps) => {
99
return (
10-
<ul className="mt-20">
10+
<ul>
1111
{posts.map((post: Post) => {
1212
const { id, data } = post;
1313
const { title, update, pubDate, description } = data;

src/layouts/Baselayout.astro

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ const pathname = Astro.url.pathname;
4040
<title>{pageTitle}</title>
4141
</head>
4242
<body class="pb-32 px-4">
43-
<header>
44-
<div
45-
class="max-w-xl mx-auto flex justify-between items-center mt-8 mb-16"
46-
>
43+
<header class="pt-8 pb-8 sm:pb-16">
44+
<div class="max-w-xl mx-auto flex justify-between items-center">
4745
<Navigation pathname={pathname} client:load />
4846
<ModeToggle client:load />
4947
</div>

src/pages/index.astro

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
44
import { getCollection } from 'astro:content';
55
66
const allPosts = await getCollection('posts');
7-
8-
const pageTitle = 'My Astro Learning Blog';
97
---
108

119
<BaseLayout>
12-
<h1>{pageTitle}</h1>
13-
<p>This is where I will post about my journey learning Astro.</p>
1410
<PostList posts={allPosts} />
1511
</BaseLayout>

0 commit comments

Comments
 (0)