Fix rendering of pages other than the index
TODO