directory layout: fix for dynamic rendering
pages: handle 404 nicely