Skip to content

Commit

Permalink
add optional thumbnail to blog posts in list
Browse files Browse the repository at this point in the history
  • Loading branch information
lorant-one committed Nov 6, 2024
1 parent 44db7d1 commit ae17898
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/app/[locale]/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function Blog(
</Heading>
<Flex
fillWidth flex={1} direction="column">
<Posts range={[1,3]} locale={locale}/>
<Posts range={[1,3]} locale={locale} thumbnail/>
<Posts range={[4]} columns="2" locale={locale}/>
</Flex>
{newsletter.display && (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Arriving to a new milestone in my career"
publishedAt: "2024-04-08"
image: "/images/gallery/img-02.jpg"
summary: "Every career is a journey, filled with challenges, growth, and those significant moments that mark a shift in our path."
tag: "Journal"
---
Expand Down
1 change: 1 addition & 0 deletions src/app/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function readMDXFile(filePath: string) {
title: data.title || '',
publishedAt: data.publishedAt,
summary: data.summary || '',
image: data.image || '',
images: data.images || [],
tag: data.tag || [],
team: data.team || [],
Expand Down
9 changes: 0 additions & 9 deletions src/components/blog/Posts.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,5 @@

&:hover {
transform: translateX(var(--static-space-8));

.image {
transform: scale(1.04);
}
}
}

.image {
transform: scale(1);
transition: var(--transition-micro-medium);
}

0 comments on commit ae17898

Please sign in to comment.