wingsuit-designsystem / wingsuit

Twig for Storybook
GNU General Public License v2.0
93 stars 16 forks source link

Dynamic/wildcard routes in Pages static site generator? #211

Open bgilhome opened 2 years ago

bgilhome commented 2 years ago

Can the Pages preset static site generator handle dynamic or wildcard routes, e.g.

{ 
  ... 
  path: '/articles/[slug]'
}

or even

{ 
  ... 
  path: '/articles/*'
}

? Where slug would then be available in the template.

Alternatively, is it possible to export an array of pages from a single .pages.jsx file?

christianwiedemann commented 2 years ago

Hi, right now it is not possible. Will check if it is easy to integrate it.