digital-resources
digital-resources copied to clipboard
Refactor getStaticPaths for the three section templates
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