Update popular articles section and image gallery display on homepage
Modify the API to fetch 6 popular articles instead of 5 and remove the overflow-y-auto class from the popular articles container in the home page component. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 517dfa7b-26ac-463d-a6e1-a58c6df97188 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: ad447485-bb94-4ca8-9fc6-1631f1d18fee Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/517dfa7b-26ac-463d-a6e1-a58c6df97188/drGbo1a Replit-Helium-Checkpoint-Created: true
This commit is contained in:
+1
-1
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user