update config and bugfix

master
Gustavo Luigi 2022-09-21 16:26:54 -03:00
parent 6462c2ea68
commit d0f7a6cf92
3 changed files with 14 additions and 14 deletions

View File

@ -29,11 +29,11 @@
]
},
{
"name":"Produkte",
"description":"Produkte",
"name":"Produkt",
"description":"Produkt",
"icon":"shopping-bag",
"status":"1",
"blade": "produkte",
"blade": "produkt",
"fields": [
{
"name": "Beschreibung",

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('user.get', [$content->user->slug])}}"
data-author-url="{{route('users.show', [$content->user->slug])}}"
data-author-name="{{$content->user->name}}"
data-author-image="{{$content->user->gravatar()}}"
></span>

View File

@ -225,16 +225,16 @@
</div>
</div>
<div class="row">
@foreach(filterByContentType($mdContents, "Produkte")->take(6) as $content)
<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($content->image) }}" loading="lazy">
@else
<img class="rounded border img-fluid" src="{{ asset('template/images/konradenhof-placeholder.jpg') }}" loading="lazy">
@endif
</a>
</div>
@foreach(filterByContentType($mdContents, "Produkt")->take(6) as $content)
<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($content->image) }}" loading="lazy">
@else
<img class="rounded border img-fluid" src="{{ asset('template/images/konradenhof-placeholder.jpg') }}" loading="lazy">
@endif
</a>
</div>
@endforeach
<div class="col-12 text-center">
<a href="{{url('/produkte')}}" class="text-center small" >Mehr Produkte</a>