mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 20:08:54 +00:00
Fixed bug with search results on pages with tables.
This commit is contained in:
parent
8541e6fb32
commit
81120e3f57
1 changed files with 4 additions and 4 deletions
8
templates/partials/simplesearch_item.html.twig
Normal file → Executable file
8
templates/partials/simplesearch_item.html.twig
Normal file → Executable file
|
@ -4,9 +4,9 @@
|
|||
{% set thumb = page.media[page.header.primaryImage] ?: page.media.images|first %}
|
||||
|
||||
{% if thumb %}
|
||||
<div class="search-image">
|
||||
<a href="{{ page.url }}">{{ thumb.cropZoom(100,100).loading('lazy').html(title,title)|raw }}</a>
|
||||
</div>
|
||||
<div class="search-image">
|
||||
<a href="{{ page.url }}">{{ thumb.loading('lazy').html(title,title)|raw }}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="search-item">
|
||||
<div class="search-title">
|
||||
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue