Skip to content

Commit b9678b4

Browse files
committed
Refactor markdown files and components to replace 'occurrence' with 'chapter'
- Updated all markdown files in the lymphoma directory to change the frontmatter key from 'occurrence' to 'chapter'. - Modified the LymphomaPage component to reflect the change from 'occurrence' to 'chapter'. - Adjusted the template for individual markdown pages to use 'chapter' instead of 'occurrence'. - Updated the LymphomaPostsListView component to group posts by 'chapter' instead of 'occurrence' and adjusted related UI elements accordingly.
1 parent 9abff74 commit b9678b4

75 files changed

Lines changed: 91 additions & 93 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/layouts/PostLayout.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type PostLayoutProps = {
88
title: string
99
date: Date
1010
category: string
11-
occurrence?: number
11+
chapter?: number
1212
contents: any
1313
previousSlug: string
1414
nextSlug: string
@@ -18,7 +18,7 @@ export const PostLayout: React.FC<PostLayoutProps> = ({
1818
title,
1919
date,
2020
category,
21-
occurrence,
21+
chapter,
2222
contents,
2323
previousSlug,
2424
nextSlug,
@@ -29,11 +29,9 @@ export const PostLayout: React.FC<PostLayoutProps> = ({
2929
<S.Container>
3030
<S.PostCategory>{category}</S.PostCategory>
3131
<S.PostTitle>{title}</S.PostTitle>
32-
{occurrence != null && (
32+
{chapter != null && (
3333
<S.PostOccurrence>
34-
<S.PostOccurrenceBadge>
35-
Occurrence {occurrence}
36-
</S.PostOccurrenceBadge>
34+
<S.PostOccurrenceBadge>Occurrence {chapter}</S.PostOccurrenceBadge>
3735
</S.PostOccurrence>
3836
)}
3937
<S.PostDate>{formatRFC7231(date)}</S.PostDate>

src/markdown/lymphoma/2015-09-01.md

Lines changed: 1 addition & 1 deletion

src/markdown/lymphoma/2016-03-03.md

Lines changed: 1 addition & 1 deletion

src/markdown/lymphoma/2016-03-04.md

Lines changed: 1 addition & 1 deletion

src/markdown/lymphoma/2016-03-05.md

Lines changed: 1 addition & 1 deletion

src/markdown/lymphoma/2016-03-07.md

Lines changed: 1 addition & 1 deletion

src/markdown/lymphoma/2016-03-10.md

Lines changed: 1 addition & 1 deletion

src/markdown/lymphoma/2016-03-17.md

Lines changed: 1 addition & 1 deletion

src/markdown/lymphoma/2016-03-18.md

Lines changed: 1 addition & 1 deletion

src/markdown/lymphoma/2016-03-21.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)