{# /** * @file * Theme override to display a node. */ #} {% set classes = [ 'node', 'node-type-' ~ node.bundle|clean_class, 'node-content', 'service-node-content', node.isPromoted() ? 'node--promoted', node.isSticky() ? 'node--sticky', not node.isPublished() ? 'node--unpublished', ] %} {% if view_mode =="teaser" %} {{ title_prefix }} {{ title_suffix }}
{% if content.field_image | render %}
{{ content.field_image }}
{% endif %}

{{ label }}

{% if content.field_icon_image | render %}
{{ content.field_icon_image }}
{% endif %}

{{ label }}

{{ content.body }}
{{ 'Read More'|t }}
{% elseif view_mode =="teaser_2" %} {{ title_prefix }} {{ title_suffix }} {% if content.field_image | render %}
{{ content.field_image }}
{% endif %}
{% if content.field_icon_image | render %}
{{ content.field_icon_image.0['#item'].alt }}
{% endif %}

{{ label }}

{{ content.body }}
{{ 'Read More'|t }}
{% elseif view_mode =="teaser_3" %}

{{ label }}

{{ content.body }}
{% else %} {{ title_prefix }} {{ title_suffix }} {% if content.field_image | render %}
{{ content.field_image }}
{% endif %}
{{ content.body }}
{{ content|without('field_image','body','field_icon_image') }} {% endif %}