Skip to content

Commit

Permalink
update image for electronics category
Browse files Browse the repository at this point in the history
  • Loading branch information
ayan4m1 committed Dec 14, 2023
1 parent 0747ac8 commit 3f9d58f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added src/images/articles/electronics.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/images/articles/electronics.png
Binary file not shown.
4 changes: 2 additions & 2 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export default function IndexPage({ data }) {
const findImage = (articleName) =>
articleName
? getImage(
images.find(
(image) => image.relativePath === `articles/${articleName}.png`
images.find((image) =>
image.relativePath.startsWith(`articles/${articleName}`)
)?.childImageSharp?.gatsbyImageData
)
: {};
Expand Down

0 comments on commit 3f9d58f

Please sign in to comment.