You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Restructure URLs to use separate code and slug segments
Change URL format from `/blog/b24f9--the-values-i-build-by/` to
`/blog/b24f9/the-values-i-build-by/` for cleaner, more semantic URLs.
- Add Code.parseId() and Code.buildUrl() utility functions
- Restructure routes from [slug].astro to [code]/[slug].astro
- Update all index pages and components to generate new URL format
- Update middleware to handle new URL structure and redirects
- Add support for talks in middleware (was missing)
* Extract repeated getStaticPaths pattern into Code.getStaticPaths() helper
Add Code.getStaticPaths() static method to reduce duplication across route files.
Previously each route file had ~9 lines of boilerplate to map collection entries
to params/props. Now it's just 3 lines using the helper.
Updated files:
- src/utils/code.ts: Added Code.getStaticPaths() helper method
- src/pages/talks/[code]/[slug].astro: Use helper
- src/pages/blog/[code]/[slug].astro: Use helper
- src/pages/projects/[code]/[slug].astro: Use helper
- src/pages/research/[code]/[slug].astro: Use helper
Co-authored-by: Justin Bennett <just-be-dev@users.noreply.github.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Justin Bennett <just-be-dev@users.noreply.github.com>
0 commit comments