🗽
Events in New York
Page 2 of 5 • 6 events per page
Route: /events/new-york/2
2
Current Page
6
Events Shown
30
Total Events
EST
Timezone
Workshop
#7
Tech Workshop 7
3/29/2026 at 8:00 AM
New York Convention Center Hall B
112 attending
$37 Meetup
#8
Art Meetup 8
3/30/2026 at 9:00 PM
New York Convention Center Hall C
50 attending
$30 Seminar
#9
Music Seminar 9
3/31/2026 at 10:00 AM
New York Convention Center Hall D
115 attending
Free Concert
#10
Food Concert 10
4/1/2026 at 11:00 PM
New York Convention Center Hall E
90 attending
$59 Festival
#11
Business Festival 11
4/2/2026 at 12:00 AM
New York Convention Center Hall F
186 attending
$44 Conference
#12
Health Conference 12
4/3/2026 at 1:00 PM
New York Convention Center Hall A
110 attending
Free Pagination Route Details
File path:
/pages/events/[city]/[page].astro
Static paths:
Pre-generated for 5 cities × 5 pages = 25 routes
Current params:
city="new-york", page="2"
Pagination Implementation
---
export function getStaticPaths() {
const cities = ['san-francisco', 'new-york', 'london'];
const maxPages = 5;
return cities.flatMap(city =>
Array.from({ length: maxPages }, (_, i) => ({
params: {
city: city,
page: (i + 1).toString()
}
}))
);
}
const { city, page } = Astro.params;
const currentPage = parseInt(page || '1');
const events = getEventsForPage(city, currentPage);
---
<h1>Events in {city} - Page {currentPage}</h1>