adjust the css if we are using vendor summaries
[ryf-theme.git] / templates / search-result.html.twig
index 9809a16..69e99ea 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>