Fixed bug with search results on pages with tables.

This commit is contained in:
pmoreno.rodriguez 2023-02-05 21:55:52 +01:00
parent 8541e6fb32
commit 81120e3f57

4
templates/partials/simplesearch_item.html.twig Normal file → Executable file
View file

@ -5,7 +5,7 @@
{% if thumb %}
<div class="search-image">
<a href="{{ page.url }}">{{ thumb.cropZoom(100,100).loading('lazy').html(title,title)|raw }}</a>
<a href="{{ page.url }}">{{ thumb.loading('lazy').html(title,title)|raw }}</a>
</div>
{% endif %}
<div class="search-item">
@ -15,7 +15,7 @@
<div class="search-details">
<span class="search-date">{{ page.date|date(config.system.pages.dateformat.short) }}</span>
</div>
<p>{{ page.summary|truncate(200)|raw }}</p>
{{ page.summary|truncate(300, true)|raw }}
</div>
</section>