1.add the homepage setting function.php
2.add the pagenate function