abstract code for projects and blog page and create blog detail page