add year and month to data passed to the template for a post