initial theming for search results
[ryf-theme.git] / templates / search-result.html.twig
index 9809a16..31ae471 100644 (file)
@@ -64,7 +64,9 @@
 </h3>
 {{ title_suffix }}
 {% if node.field_image.0 %}
-  <img src="{{ node.field_image.0.entity.uri.value | image_style('thumbnail') }}">
+  <div class="search-image">
+    <img src="{{ node.field_image.0.entity.uri.value | image_style('thumbnail') }}">
+  </div>
 {% endif %}
 {% if snippet %}
   <p{{ content_attributes }}>{{ snippet }}</p>