Skip to content

Commit

Permalink
Fix: Minor layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayao0819 committed Jun 14, 2024
1 parent 32dabb9 commit 7e9eba0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/app/(hayao)/blog/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ export default function BlogLayout({ children }: { children: React.ReactNode })
{categories.map((c) => {
return (
<li key={c} role="link" className="my-2 cursor-pointer p-2 text-sm hover:underline">
<Link href={`/blog/category/${c}`}>{c}</Link>
<Link href={`/blog/category/${c}`} className="block size-full">
{c}
</Link>
</li>
);
})}
Expand Down
5 changes: 2 additions & 3 deletions src/app/(hayao)/blog/tag/[tag]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Link } from "next-view-transitions";
import { FaArrowLeft } from "react-icons/fa6";

import { PostList as PostListElement } from "@/components/layouts/blog/PostPreviewList";
import CommonSpacer from "@/components/layouts/CommonSpacer";
import { SUMMARY_LENGTH } from "@/lib/blog/config";
import { fetchedBlogPostList } from "@/lib/blog/post";
import { PostData } from "@/lib/markdown/post";
Expand All @@ -13,13 +12,13 @@ export default async function Categories({ params }: { params: { tag: string } }
//console.log(params.cat);

return (
<CommonSpacer>
<>
<Link href="/blog/tag" className="mb-2 flex items-center p-2 hover:text-accent">
<FaArrowLeft />
<p>タグ一覧に戻る</p>
</Link>
<PostListElement posts={postpost} />
</CommonSpacer>
</>
);
}

Expand Down

0 comments on commit 7e9eba0

Please sign in to comment.