mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 20:08:54 +00:00
Fixed html attributes to first image
This commit is contained in:
parent
cf01929426
commit
3e691e8bdb
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
<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].loading('lazy').html(title,title)|raw ?: page.media.images.html(title,title)|raw|first %}
|
||||
|
||||
{% if banner %}
|
||||
<div class="search-image">
|
||||
|
|
Loading…
Add table
Reference in a new issue