1
0
Fork 0

Fix image field access

This commit is contained in:
Jannik Beyerstedt 2022-08-10 15:17:42 +02:00
parent 2ff0db4906
commit 0cdefb0fe1
3 changed files with 4 additions and 4 deletions

View file

@ -43,9 +43,9 @@ if ($page->depth() == 1) {
<div class="site-wrap">
<header class="section">
<div class="container">
<?php if ($img = $site->images()->find($site->title_image())) : ?>
<?php if ($img = $site->title_image()->toFile()) : ?>
<a class="logo" href="<?php echo url() ?>">
<img src="<?php echo $site->url().'/content/'.$site->title_image()->html() ?>" alt="Logo">
<img src="<?php echo $img->url() ?>" alt="Logo">
</a>
<?php endif; ?>