initial theming for search results
[ryf-theme.git] / templates / search-result.html.twig
index 9809a166fbe8d56efe91a0f80342a2be246c9819..31ae4712f8ed892e8fba4947486481391a1d0394 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>