Skip to content

Commit 93b8451

Browse files
committed
refactor(layout): remove duplicate language toggle and center date
1 parent 72daa48 commit 93b8451

File tree

2 files changed

+2
-36
lines changed

2 files changed

+2
-36
lines changed

src/layouts/BlogPost.astro

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ const imageUrl = heroImage ? new URL(heroImage, Astro.site).href : new URL(Fallb
120120
.post-meta {
121121
display: flex;
122122
align-items: center;
123+
justify-content: center;
123124
gap: 16px;
124125
font-size: 0.9rem;
125126
color: #999;
@@ -131,21 +132,6 @@ const imageUrl = heroImage ? new URL(heroImage, Astro.site).href : new URL(Fallb
131132
.last-updated {
132133
font-style: italic;
133134
}
134-
.lang-toggle {
135-
margin-left: auto;
136-
color: #555;
137-
font-size: 0.85rem;
138-
font-weight: 500;
139-
text-decoration: none;
140-
padding: 4px 12px;
141-
border: 1px solid #ddd;
142-
border-radius: 4px;
143-
transition: all 0.2s;
144-
}
145-
.lang-toggle:hover {
146-
border-color: #111;
147-
color: #111;
148-
}
149135
.post-content {
150136
color: rgb(51, 51, 51);
151137
font-size: 1rem;
@@ -312,9 +298,6 @@ const imageUrl = heroImage ? new URL(heroImage, Astro.site).href : new URL(Fallb
312298
(수정: <FormattedDate date={updatedDate} />)
313299
</span>
314300
)}
315-
{slug && (
316-
<a href={`/en/blog/${slug}/`} class="lang-toggle">EN</a>
317-
)}
318301
</div>
319302
</header>
320303
<div class="post-content">

src/layouts/BlogPostEn.astro

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ const imageUrl = heroImage ? new URL(heroImage, Astro.site).href : new URL(Fallb
120120
.post-meta {
121121
display: flex;
122122
align-items: center;
123+
justify-content: center;
123124
gap: 16px;
124125
font-size: 0.9rem;
125126
color: #999;
@@ -131,21 +132,6 @@ const imageUrl = heroImage ? new URL(heroImage, Astro.site).href : new URL(Fallb
131132
.last-updated {
132133
font-style: italic;
133134
}
134-
.lang-toggle {
135-
margin-left: auto;
136-
color: #555;
137-
font-size: 0.85rem;
138-
font-weight: 500;
139-
text-decoration: none;
140-
padding: 4px 12px;
141-
border: 1px solid #ddd;
142-
border-radius: 4px;
143-
transition: all 0.2s;
144-
}
145-
.lang-toggle:hover {
146-
border-color: #111;
147-
color: #111;
148-
}
149135
.post-content {
150136
color: rgb(51, 51, 51);
151137
font-size: 1rem;
@@ -320,9 +306,6 @@ const imageUrl = heroImage ? new URL(heroImage, Astro.site).href : new URL(Fallb
320306
(Updated: <FormattedDate date={updatedDate} />)
321307
</span>
322308
)}
323-
{slug && (
324-
<a href={`/blog/${slug}/`} class="lang-toggle">KO</a>
325-
)}
326309
</div>
327310
</header>
328311
<div class="post-content">

0 commit comments

Comments
 (0)