mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 20:08:54 +00:00
Fixed |raw filter in banner image
This commit is contained in:
parent
99094c0aaf
commit
649e259f29
1 changed files with 3 additions and 2 deletions
|
@ -1,10 +1,11 @@
|
|||
<section class="search-row">
|
||||
|
||||
{% set banner = page.media[page.header.primaryImage].loading('lazy').html(page.title,page.title)|raw ?: page.media.images|first %}
|
||||
{% set title = page.title %}
|
||||
{% set banner = page.media[page.header.primaryImage] ?: page.media.images|first %}
|
||||
|
||||
{% if banner %}
|
||||
<div class="search-image">
|
||||
<a href="{{ page.url }}">{{ banner }}</a>
|
||||
<a href="{{ page.url }}">{{ banner.cropZoom(100,100).loading('lazy').html(title,title)|raw }}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="search-item">
|
||||
|
|
Loading…
Add table
Reference in a new issue