refactor static pages into standalone directories