DRY out insertion of year/month in news plugin