{% load wagtailcore_tags wagtailimages_tags %} {% image self.image width-356 as img %} {% firstof self.page.url self.link as target_url %}