theme: fix index page layout when directly visit the index.html