Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor getStaticPaths for the three section templates #73

Open
ViorelMocanu opened this issue Oct 8, 2023 · 0 comments · May be fixed by #304
Open

Refactor getStaticPaths for the three section templates #73

ViorelMocanu opened this issue Oct 8, 2023 · 0 comments · May be fixed by #304
Assignees
Labels
good first issue Good for newcomers refactor Remake an existing functionality to KISS and DRY and make it better.
Milestone

Comments

@ViorelMocanu
Copy link
Owner

ViorelMocanu commented Oct 8, 2023

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 ViorelMocanu converted this from a draft issue Oct 8, 2023
@ViorelMocanu ViorelMocanu modified the milestones: v0.5, v1.0 Oct 8, 2023
@ViorelMocanu ViorelMocanu moved this to 📋 Backlog in Resurse.dev Oct 8, 2023
@ViorelMocanu ViorelMocanu moved this from 📋 Backlog to 🔖 Ready in Resurse.dev Oct 8, 2023
@ViorelMocanu ViorelMocanu added the refactor Remake an existing functionality to KISS and DRY and make it better. label Oct 8, 2023
@ViorelMocanu ViorelMocanu self-assigned this Oct 8, 2023
@ViorelMocanu ViorelMocanu added the good first issue Good for newcomers label Oct 22, 2023
@ViorelMocanu ViorelMocanu linked a pull request Aug 12, 2024 that will close this issue
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers refactor Remake an existing functionality to KISS and DRY and make it better.
Projects
Status: 🔖 Ready
Development

Successfully merging a pull request may close this issue.

1 participant