{# Create classes array. The 'node' class is required for contextual edit links. #} {% set classes = [ 'node' ] %} {# BEM inspired class syntax: https://en.bem.info/ Enable this code if you would like node classes like "article article--layout-teaser", where article is the content type and teaser is the view mode. {% set classes = classes|merge([ node.bundle|clean_class, view_mode ? node.bundle|clean_class ~ '--layout-' ~ view_mode|clean_class ]) %} {% set title_classes = [ node.bundle|clean_class ~ '__title' ] %} #} {% if title_prefix or title_suffix or display_submitted or unpublished or page is empty and label %}
{{ title_prefix }} {% if not page and label %} {{ label }} {% endif %} {{ title_suffix }} {% if display_submitted %} {% endif %} {% if not node.published %}

{{ 'Unpublished'|t }}

{% endif %}
{% endif %} {{ content|without('links') }} {% if content.links %} {% endif %}