How to manage gnarly routing with Static Site Generators
Pseudo-code for route resolution
- Check if path matches existing curated routes → serve normally
- If not found, check content directory for exact path match
- If found, serve content with appropriate layout
- If still not found, check for redirects/aliases
- Finally, show 404 with suggestions