Swap out calls to template in layouts for partial

This seems to get everything working with the current version of hugo.