Skip to content

Commit

Permalink
Logo, OG image & list image
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Jul 15, 2023
1 parent 8fcd3bb commit 1770e41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion resources/views/public/_json-ld.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}"
Expand Down
5 changes: 1 addition & 4 deletions resources/views/public/_list-item.blade.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<li class="news-list-item">
<a class="news-list-item-link" href="{{ $news->uri() }}">
@empty(!$news->image)
<img class="news-list-item-image" src="{{ $news->present()->image(600, 400) }}" width="300" height="200" alt="{{ $news->image->alt_attribute }}" />
@endempty

<img class="news-list-item-image" src="{{ $news->present()->image(800, 600) }}" width="400" height="300" alt="{{ $news->image?->alt_attribute }}" />
<div class="news-list-item-info">
<h2 class="news-list-item-title">{{ $news->title }}</h2>
<div class="news-list-item-date">{{ $news->present()->dateLocalized }}</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/public/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 1770e41

Please sign in to comment.