Skip to content

Commit 478ee84

Browse files
author
nakamuraitsuki
committed
パンくずリスト
1 parent 5dab4e5 commit 478ee84

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default async function NewsDetail({ params }: Props) {
5353
<Breadcrumb
5454
items={[
5555
{ title: 'Top', href: '/' },
56-
{ title: 'news', href: '/news' },
56+
{ title: 'News', href: '/news' },
5757
{ title: data.title, href: `/news/${slug}` },
5858
]}
5959
/>

src/app/news/page.tsx

+7-9
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Metadata } from 'next';
33
import Link from 'next/link';
44
import { getMarkdowns } from '../../utils/markdown';
55
import style from './page.module.scss';
6+
import { Breadcrumb } from '@/components/Breadcrumb';
67
import { HeroImage } from '@/components/HeroImage';
78
import { NewsPageList } from '@/components/news-page-list/news-page-list';
89

@@ -27,15 +28,12 @@ export default async function News() {
2728
<main className={style.main}>
2829
<div className={style.hero}>
2930
<HeroImage title='新着情報' type='default' blur={true} />
30-
<div className={style.breadcrumb}>
31-
<Link href='/' className={style.breadcrumbLink}>
32-
Top
33-
</Link>
34-
<p className={style.breadcrumbLink}>&nbsp;&gt;&nbsp;</p>
35-
<Link href='/news' className={style.breadcrumbLink}>
36-
News
37-
</Link>
38-
</div>
31+
<Breadcrumb
32+
items={[
33+
{ title: 'Top', href: '/' },
34+
{ title: 'News', href: '/news' },
35+
]}
36+
/>
3937
</div>
4038
<div className={style.contents}>
4139
<h1 className={style.contentTitle}>ニュース一覧</h1>

0 commit comments

Comments
 (0)