diff --git a/resources/views/themes/zeus/sky/page.blade.php b/resources/views/themes/zeus/sky/page.blade.php index 0bd1d03..55fafce 100644 --- a/resources/views/themes/zeus/sky/page.blade.php +++ b/resources/views/themes/zeus/sky/page.blade.php @@ -16,8 +16,8 @@ - @if($post->image() !== null) - {{ $post->title }} + @if($post->image('pages') !== null) + {{ $post->title }} @endif
diff --git a/resources/views/themes/zeus/sky/partial/sidebar/pages.blade.php b/resources/views/themes/zeus/sky/partial/sidebar/pages.blade.php index 45f5e31..8351e41 100644 --- a/resources/views/themes/zeus/sky/partial/sidebar/pages.blade.php +++ b/resources/views/themes/zeus/sky/partial/sidebar/pages.blade.php @@ -5,8 +5,8 @@ @foreach($pages as $post)
- @if($post->image() !== null) - {{ $post->title }} + @if($post->image('pages') !== null) + {{ $post->title }} @endif
{!! $post->title !!}
diff --git a/src/Livewire/Page.php b/src/Livewire/Page.php index 4126e7e..2d86e94 100644 --- a/src/Livewire/Page.php +++ b/src/Livewire/Page.php @@ -49,7 +49,7 @@ public function setSeo(): void ->twitter(); if (! $this->page->getMedia('posts')->isEmpty()) { - seo()->image($this->page->getFirstMediaUrl('posts')); + seo()->image($this->page->getFirstMediaUrl('pages')); } } }