diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 183dfe5..193e7cd 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -292,7 +292,7 @@ function FeaturedCarousel({ articles, popular, galleryImages, focalPoints }: { a ))} -
+
{popular && popular.length > 0 && }
diff --git a/server/routes.ts b/server/routes.ts index 5633e00..c7fa4e9 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -64,7 +64,7 @@ export async function registerRoutes( }); app.get("/api/articles/popular", async (req, res) => { - const limit = parseInt(req.query.limit as string) || 5; + const limit = parseInt(req.query.limit as string) || 6; const articles = await storage.getPopularArticles(limit); res.json(articles); });