handle / and /post/:slug pages