🗽

Events in New York

Page 5 of 5 • 6 events per page

Route: /events/new-york/5
5
Current Page
6
Events Shown
30
Total Events
EST
Timezone
Workshop #25

Business Workshop 25

2/28/2026 at 2:00 AM
New York Convention Center Hall B
57 attending
$54
Meetup #26

Health Meetup 26

3/1/2026 at 3:00 PM
New York Convention Center Hall C
87 attending
$110
Seminar #27

Education Seminar 27

3/2/2026 at 4:00 AM
New York Convention Center Hall D
139 attending
Free
Concert #28

Tech Concert 28

3/3/2026 at 5:00 PM
New York Convention Center Hall E
133 attending
$89
Festival #29

Art Festival 29

3/4/2026 at 6:00 AM
New York Convention Center Hall F
65 attending
$100
Conference #30

Music Conference 30

3/5/2026 at 7:00 PM
New York Convention Center Hall A
172 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="5"

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>