Skip to content

Commit c311d4a

Browse files
committed
feat : toc
1 parent 8d547f9 commit c311d4a

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

gatsby-config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ module.exports = {
120120
icon: `<svg aria-hidden="true" height="20" version="1.1" viewBox="0 0 16 16" width="20"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg>`,
121121
},
122122
},
123-
`gatsby-remark-prismjs`,
124123
{
125124
resolve: `gatsby-remark-copy-relative-linked-files`,
126125
options: {
@@ -132,11 +131,11 @@ module.exports = {
132131
`bmp`,
133132
`tiff`,
134133
`webp`,
135-
`gif`,
136134
`svg`,
137135
],
138136
},
139137
},
138+
`gatsby-remark-prismjs`,
140139
],
141140
},
142141
},

src/components/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Layout = ({
2020

2121
{/* Main Content - flex-grow로 남은 공간을 모두 차지 */}
2222
<main className="flex-grow">
23-
<div className="container max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
23+
<div className="container max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
2424
{children}
2525
</div>
2626
</main>

src/components/table-of-contents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ const TableOfContents: React.FC<TableOfContentsProps> = ({
239239
</CollapsibleContent>
240240
</Collapsible>
241241
) : (
242-
<div className="border rounded-lg p-4 bg-card/30 backdrop-blur-sm">
242+
<div className="border rounded-lg p-4 bg-card/50 backdrop-blur-sm shadow-sm">
243243
<div className="flex items-center space-x-2 mb-4">
244244
<List className="w-4 h-4" />
245245
<span className="font-semibold text-sm">목차</span>

src/templates/blog-post.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const BlogPostTemplate: React.FC<BlogPostTemplateProps> = ({
7272
<div className="flex flex-col lg:flex-row gap-8">
7373
{/* 메인 아티클 */}
7474
<article
75-
className="flex-1 max-w-none lg:max-w-3xl"
75+
className="flex-1 max-w-none lg:max-w-4xl"
7676
itemScope
7777
itemType="http://schema.org/Article"
7878
>
@@ -185,7 +185,7 @@ const BlogPostTemplate: React.FC<BlogPostTemplateProps> = ({
185185
<aside className="w-full lg:w-80 lg:shrink-0">
186186
<TableOfContents
187187
tableOfContents={post.tableOfContents}
188-
className="lg:ml-8"
188+
className="lg:ml-0"
189189
/>
190190
</aside>
191191
</div>

0 commit comments

Comments
 (0)