refactoring app.index(find blog file and gen url)