Adds footer and splits layout into partials