v1/web/themes/custom/martis/templates/node/node--gallery.html.twig

43 lines
882 B
Twig

{#
/**
* @file
* Theme override to display a node.
*/
#}
{%
set classes = [
'node',
'node-type-' ~ node.bundle|clean_class,
'node-content',
node.isPromoted() ? 'node--promoted',
node.isSticky() ? 'node--sticky',
not node.isPublished() ? 'node--unpublished',
]
%}
<div{{ attributes }}>
{{ title_prefix }}
{{ title_suffix }}
{% if teaser %}
<div class="gallery-item">
{{ content.field_image }}
</div>
{% else %}
<div{{ attributes.addClass(classes) }}>
<div class="row">
<div class="col-sm-8">
{% if content.field_image | render %}
<div class="post-image">{{ content.field_image }}</div>
{% endif %}
</div>
<div class="col-sm-4">
{% if content.body | render %}
<h2 class="block-title portfolio-title-detail">{{ label }}</h2>
<div class="portfolio-body">{{ content.body }}</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
</div>