Display all blog posts in a carousel instead of a limited selection

Remove the article limit from the carousel component to display all available blog posts.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 517dfa7b-26ac-463d-a6e1-a58c6df97188
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 10024c8e-8a7c-4e89-b968-9fcc8879b83e
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/517dfa7b-26ac-463d-a6e1-a58c6df97188/0ZGabQy
Replit-Helium-Checkpoint-Created: true
This commit is contained in:
sebastjanartic 2026-02-28 21:59:58 +00:00
parent e6f9b04d99
commit 9cdbdb35ac

View File

@ -326,7 +326,7 @@ function FeaturedHeroCard({ article, focalPoints }: { article: Article; focalPoi
function FeaturedCarousel({ articles, popular, galleryImages, focalPoints }: { articles: Article[]; popular?: Article[]; galleryImages?: GalleryImage[]; focalPoints?: Record<string, { x: number; y: number }> }) {
const pageSize = 3;
const totalPages = Math.max(1, Math.ceil(Math.min(articles.length, 9) / pageSize));
const totalPages = Math.max(1, Math.ceil(articles.length / pageSize));
const [page, setPage] = useState(0);
const [paused, setPaused] = useState(false);