1
0
Fork 0

[SITE] show title image (if it exists)

This commit is contained in:
Jannik Beyerstedt 2016-04-07 22:06:04 +02:00
parent 75d1ead187
commit 3b5f107466

View file

@ -41,9 +41,11 @@ if ($page->depth() == 1) {
<header class="section">
<div class="container">
<?php if ($img = $site->images()->find($site->title_image())) : ?>
<a class="logo" href="<?php echo url() ?>">
<img src="" alt="Logo">
<img src="<?php echo $site->title_image()->url() ?>" alt="Logo">
</a>
<?php endif; ?>
<nav>
<button class="navbar-toggler hidden-sm-up" type="button" data-toggle="collapse" data-target="#exCollapsingNavbar">