webp
This commit is contained in:
parent
068492e495
commit
53a2ed8b0f
11 changed files with 29 additions and 21 deletions
|
|
@ -9,7 +9,7 @@
|
|||
<div class="hero__image" style="--color: var(--color-season)">
|
||||
<?php if ($site->heroLinkUrl()->isNotEmpty() == 'true'): ?>
|
||||
<a href="<?= $site->heroLinkUrl()->toUrl() ?>" title="en savoir plus">
|
||||
<?php snippet('picture', ['file' => $site->heroImage()->toFile(), 'lazy' => false, 'size' => 50]) ?>
|
||||
<?php snippet('picture', ['file' => $site->heroImage()->toFile()->thumb(), 'lazy' => false, 'size' => 50]) ?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<?php snippet('picture', ['file' => $site->heroImage()->toFile()->thumb(), 'lazy' => false, 'size' => 50]) ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue