diff --git a/resources/views/public/_json-ld.blade.php b/resources/views/public/_json-ld.blade.php index a0a5ee0..6f20160 100644 --- a/resources/views/public/_json-ld.blade.php +++ b/resources/views/public/_json-ld.blade.php @@ -19,7 +19,7 @@ "name": "{{ config('app.name') }}", "logo": { "@type": "ImageObject", - "url": "{{ Storage::url('settings/' . config('typicms.image')) }}" + "url": "{{ url(config('typicms.logo')) }}" } }, "description": "{{ preg_replace("/\r|\n/", ' ', $news->summary) }}" diff --git a/resources/views/public/_list-item.blade.php b/resources/views/public/_list-item.blade.php index 3784628..2c47c0f 100644 --- a/resources/views/public/_list-item.blade.php +++ b/resources/views/public/_list-item.blade.php @@ -1,9 +1,6 @@
  • - @empty(!$news->image) - {{ $news->image->alt_attribute }} - @endempty - + {{ $news->image?->alt_attribute }}

    {{ $news->title }}

    {{ $news->present()->dateLocalized }}
    diff --git a/resources/views/public/show.blade.php b/resources/views/public/show.blade.php index 487cceb..4b9e8f4 100644 --- a/resources/views/public/show.blade.php +++ b/resources/views/public/show.blade.php @@ -3,7 +3,7 @@ @section('title', $model->title . ' – ' . __('News') . ' – ' . $websiteTitle) @section('ogTitle', $model->title) @section('description', $model->summary) -@section('ogImage', $model->present()->image(1200, 630)) +@section('ogImage', $model->present()->ogImage()) @section('bodyClass', 'body-news body-news-' . $model->id . ' body-page body-page-' . $page->id) @section('content')