add support for post templates