{% endif %}
{% if page.in_menu %}
{% if page.content_model == "link" %}
- <li class="nav-header__item nav-header__item--image">
- {% with page.link.link_images.all|first as link_image %}
- <a href="{{ page.get_absolute_url }}"{% if 'http' in page.link.slug %} target="_blank"{% endif %} title="{{ page.title }}"><img width="83" height="65" src="{{ MEDIA_URL }}{% thumbnail link_image.image 166 130 %}" /></a>
- {% endwith %}
- </li>
+ {% with page.link.link_images.all|first as link_image %}
+ {% if link_image %}
+ <li class="nav-header__item nav-header__item--image">
+ <a href="{{ page.get_absolute_url }}"{% if 'http' in page.link.slug %} target="_blank"{% endif %} title="{{ page.title }}"><img width="83" height="65" src="{{ MEDIA_URL }}{% thumbnail link_image.image 166 130 %}" /></a>
+ </li>
+ {% else %}
+ <li class="nav-header__item">
+ <a class="nav-header__item-link" href="{{ page.get_absolute_url }}"{% if 'http' in page.link.slug %} target="_blank"{% endif %} title="{{ page.title }}">{{ page.title }}</a>
+ </li>
+ {% endif %}
+ {% endwith %}
{% else %}
<li class="nav-header__item">
<a class="nav-header__item-link{% if page.is_current_or_ascendant %} active{% endif %}" href="{{ page.get_absolute_url }}" title="{{ page.title }}">{{ page.title }}</a>