add support for page template and post template
docs on config