Skip to content

Commit f0b5f0c

Browse files
committed
feat: blogpost cards.
1 parent ea7cad0 commit f0b5f0c

File tree

8 files changed

+8
-20
lines changed

8 files changed

+8
-20
lines changed

public/images/placeholder-blog.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

public/images/placeholder-log.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

public/images/placeholder-project.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.
34.8 KB
Loading
17.5 KB
Loading
58.2 KB
Loading

public/posts/posts.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"category": "rant",
1010
"filename": "corrupted-blood-incident.txt",
1111
"authors": ["fezcode"],
12-
"image": "/images/asset/ogtitle.png"
12+
"image": "/images/posts/asset/symbol-flow.webp"
1313
},
1414
{
1515
"slug": "building-the-knowledge-graph",
@@ -21,7 +21,7 @@
2121
"category": "dev",
2222
"filename": "building-the-knowledge-graph.txt",
2323
"authors": ["fezcode"],
24-
"image": "/images/asset/ogtitle.png"
24+
"image": "/images/posts/asset/shapes-1.webp"
2525
},
2626
{
2727
"slug": "routing-revolution-ssg-and-seo",
@@ -33,7 +33,7 @@
3333
"category": "dev",
3434
"filename": "routing-revolution-ssg-and-seo.txt",
3535
"authors": ["fezcode"],
36-
"image": "/images/asset/ogtitle.png"
36+
"image": "/images/posts/asset/poster-loom.webp"
3737
},
3838
{
3939
"slug": "art-generation-in-fezcodex",
@@ -45,7 +45,7 @@
4545
"category": "dev",
4646
"filename": "art-generation-in-fezcodex.txt",
4747
"authors": ["fezcode"],
48-
"image": "/images/asset/ogtitle.png"
48+
"image": "/images/posts/asset/shapes-1.webp"
4949
},
5050
{
5151
"slug": "brutalist-refactor",
@@ -57,7 +57,7 @@
5757
"category": "feat",
5858
"filename": "brutalist-refactor.txt",
5959
"authors": ["fezcode"],
60-
"image": "/images/asset/ogtitle.png"
60+
"image": "/images/posts/asset/poster-loom.webp"
6161
},
6262
{
6363
"slug": "introducing-reading-experience",

src/utils/dataUtils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const getPosts = async () => {
7373
? `/blog/series/${post.series.slug}/${post.slug}`
7474
: `/blog/${post.slug}`,
7575
description: post.description || 'A blog post from Fezcodex.',
76-
image: post.image || '/images/placeholder-blog.svg',
76+
image: post.image || '/images/fezcodex-card.jpg',
7777
}));
7878

7979
return flattenedPosts;
@@ -105,11 +105,11 @@ export const getProjects = async () => {
105105
slug: project.slug,
106106
link: `/projects/${project.slug}`,
107107
description: project.shortDescription || 'A project by Fezcodex.',
108-
image: project.image || '/images/placeholder-project.svg',
108+
image: project.image || '/images/fezcodex-card.jpg',
109109
}));
110110
return formattedProjects;
111111
} catch (error) {
112112
console.error('Error in getProjects:', error);
113113
return [];
114114
}
115-
};
115+
};

0 commit comments

Comments
 (0)