digital-resources icon indicating copy to clipboard operation
digital-resources copied to clipboard

Refactor getStaticPaths for the three section templates

Open ViorelMocanu opened this issue 1 year ago • 0 comments

As a developer I would like to keep DRY.

Therefore, the getStaticPaths function needs a generic custom alias for the three contexts it's being abused in:

/pages/[section]/[...page].astro
- /pages/[section]/[category]/[...page].astro
  - /pages/[section]/[category]/[subcategory]/[...page].astro

ViorelMocanu avatar Oct 08 '23 19:10 ViorelMocanu