add link on hero image
This commit is contained in:
parent
7306ad616d
commit
7bdfdbe720
1 changed files with 7 additions and 1 deletions
|
|
@ -7,7 +7,13 @@
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="hero__image">
|
<div class="hero__image">
|
||||||
<?php snippet('picture', ['file' => $site->heroImage()->toFile()]) ?>
|
<?php if ($site->heroLinkUrl()->isNotEmpty() == 'true'): ?>
|
||||||
|
<a href="<?= $site->heroLinkUrl()->toUrl() ?>">
|
||||||
|
<?php snippet('picture', ['file' => $site->heroImage()->toFile()]) ?>
|
||||||
|
</a>
|
||||||
|
<?php else: ?>
|
||||||
|
<?php snippet('picture', ['file' => $site->heroImage()->toFile()]) ?>
|
||||||
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue