Add getters links from pages and posts to their template data instead of the getTemplateData method.