Skip to content

Commit 9a52c9d

Browse files
committed
refactor: update image links in LatestPosts component and remove unused assets
1 parent 0faf71a commit 9a52c9d

File tree

9 files changed

+4
-12
lines changed

9 files changed

+4
-12
lines changed

app/posts/[title]/page.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ export default async function ArticleDetails({
165165
<div>
166166
<img
167167
src={processedArticle.content[0].img}
168+
// src={processedArticle.img} - replace it once you are done with the CMS
168169
alt={processedArticle.imgAlt}
169170
className="w-full h-auto"
170171
/>

components/LatestPosts/LatestPosts.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default function LatestPosts() {
9090
<article className="flex flex-col-reverse sm:flex-col gap-6 md:gap-12">
9191
<article className="grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-12">
9292
<h2 className="text-subtitle">
93-
<Link href={`/magazine/${latestArticle.slug}`}>
93+
<Link href={`/posts/${latestArticle.slug}`}>
9494
{latestArticle.title}
9595
</Link>
9696
</h2>
@@ -137,7 +137,7 @@ export default function LatestPosts() {
137137
{remainingArticles.map((article, index) => (
138138
<article key={article.id}>
139139
<article className="grid md:grid-cols-[0fr_1fr] gap-6 sm:gap-12">
140-
<Link href={`/magazine/${article.slug}`} className="h-60 w-60">
140+
<Link href={`/posts/${article.slug}`} className="h-60 w-60">
141141
<Image
142142
className="w-full h-full object-cover hover:scale-105 transition"
143143
src={article.img}
@@ -149,7 +149,7 @@ export default function LatestPosts() {
149149
<article className="flex flex-col justify-between">
150150
<div className="mb-4 :md:mb-0">
151151
<h3 className="heading3-title mb-3">
152-
<Link href={`/magazine/${article.slug}`}>
152+
<Link href={`/posts/${article.slug}`}>
153153
{article.title}
154154
</Link>
155155
</h3>
-159 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

public/images/titles/Podcast.svg

-9
This file was deleted.

0 commit comments

Comments
 (0)