Benjamin Völkl 2022-09-08 15:09:56 +02:00
parent 1a34f123df
commit 88b1867065
3 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@
data-new-url="{{route_content($content)}}"
data-new-title="{{$content->title}}"
data-new-date="{{date('Y-m-d h:i:s', strtotime($content->created_at))}}"
data-author-url="{{route('author.get', [$content->user->slug])}}"
data-author-url="{{route('user.get', [$content->user->slug])}}"
data-author-name="{{$content->user->name}}"
data-author-image="{{$content->user->gravatar()}}"
></span>

View File

@ -229,7 +229,7 @@
<div class="col-4 col-md-2 mb-4">
<a href="{{ route_content($content) }}" title="{{$content->title}}">
@if ($content->image)
<img class="rounded border img-fluid" src="{{ asset('uploads/' . $content->image) }}" loading="lazy">
<img class="rounded border img-fluid" src="{{ asset($content->image) }}" loading="lazy">
@else
<img class="rounded border img-fluid" src="{{ asset('template/images/konradenhof-placeholder.jpg') }}" loading="lazy">
@endif

View File

@ -16,7 +16,7 @@
<a href="{{ route_content($content) }}">
<div class="card h-100 shadow-sm" style="background-color: #f8f8f8;">
@if ($content->image)
<img class="rounded-top img-fluid" src="{{asset('uploads/'.$content->image)}}">
<img class="rounded-top img-fluid" src="{{asset($content->image)}}">
@else
<img class="rounded-top img-fluid" src="{{asset('template/images/konradenhof-placeholder.jpg')}}">
@endif
@ -44,4 +44,4 @@
</div>
</div>
</section>
@stop
@stop