Skip to content

Commit adf6109

Browse files
committed
fix(landing): carry the unoptimized-image fix onto the shared content-*-page components
The blog/library split (#5516) moved the blog post/index/author JSX into shared ContentPostPage/ContentIndexPage/ContentAuthorPage components while this branch was in flight, so the original unoptimized removal (verified local-only ogImage paths for both blog and library content) needs to land on those shared components instead of the old per-route JSX.
1 parent f168505 commit adf6109

3 files changed

Lines changed: 0 additions & 5 deletions

File tree

apps/sim/app/(landing)/components/content-author-page/content-author-page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export function ContentAuthorPage({
5555
width={600}
5656
height={315}
5757
className='h-[160px] w-full object-cover transition-transform group-hover:scale-[1.02]'
58-
unoptimized
5958
/>
6059
<div className='p-3'>
6160
<div className='mb-1 text-[var(--text-muted)] text-xs'>

apps/sim/app/(landing)/components/content-index-page/content-index-page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ export function ContentIndexPage({
9696
sizes='(max-width: 768px) 100vw, (max-width: 1024px) 50vw, 33vw'
9797
className='object-cover'
9898
priority={index < 3}
99-
unoptimized
10099
/>
101100
</div>
102101
<div className='flex flex-col gap-2'>
@@ -158,7 +157,6 @@ export function ContentIndexPage({
158157
fill
159158
sizes='140px'
160159
className='object-cover'
161-
unoptimized
162160
/>
163161
</div>
164162
</Link>

apps/sim/app/(landing)/components/content-post-page/content-post-page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export function ContentPostPage({
5353
sizes='(max-width: 768px) 100vw, 450px'
5454
priority
5555
itemProp='image'
56-
unoptimized
5756
/>
5857
</div>
5958
</div>
@@ -142,7 +141,6 @@ export function ContentPostPage({
142141
sizes='(max-width: 768px) 100vw, (max-width: 1024px) 50vw, 33vw'
143142
className='object-cover'
144143
loading='lazy'
145-
unoptimized
146144
/>
147145
</div>
148146
<div className='flex flex-col gap-2'>

0 commit comments

Comments
 (0)