refactor layouts to use head and scripts partials
refactored post preview into a partial and added archive layout