DRYing some post template stuff.