diff --git a/shared/templates/styleguide2/people_page.html b/shared/templates/styleguide2/people_page.html index 9137de6455393f36732ff46e8956eab4cc29517f..e09c8e3f43ab726461bbba8b2193ae5d56da2a2b 100644 --- a/shared/templates/styleguide2/people_page.html +++ b/shared/templates/styleguide2/people_page.html @@ -64,11 +64,13 @@ {% if block.value.person_list_with_custom_positions|length %} {% for person in block.value.person_list_with_custom_positions %} {% with person.page as person_page %} - {% image person_page.specific.get_profile_image fill-480x480 as profile_image %} + {% with person_page.specific as person_page %} + {% image person_page.get_profile_image fill-480x480 as profile_image %} - {% firstof person.position person_page.position as position %} + {% firstof person.position person_page.position as position %} - {% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with image=profile_image name=person_page.title function=position telephone=person_page.phone mail=person_page.email url=person_page.url %} + {% include 'styleguide2/includes/molecules/contact/contact_person_large_box.html' with image=profile_image name=person_page.title function=position telephone=person_page.phone mail=person_page.email url=person_page.url %} + {% endwith %} {% endwith %} {% endfor %} {% endif %}