Fix image field access
This commit is contained in:
parent
2ff0db4906
commit
0cdefb0fe1
3 changed files with 4 additions and 4 deletions
|
@ -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; ?>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue