styling item-list categories
[ryf-theme.git] / templates / search-result.html.twig
index 9809a166fbe8d56efe91a0f80342a2be246c9819..69e99ead28c7533851d9ac7a5170df110b1d5d95 100644 (file)
 </h3>
 {{ title_suffix }}
 {% if node.field_image.0 %}
-  <img src="{{ node.field_image.0.entity.uri.value | image_style('thumbnail') }}">
+  <div class="search-image">
+    <a href="{{ url }}">
+      <img src="{{ node.field_image.0.entity.uri.value | image_style('thumbnail') }}">
+    </a>
+  </div>
 {% endif %}
 {% if snippet %}
   <p{{ content_attributes }}>{{ snippet }}</p>