From d0f7a6cf92a17e94ffad32abb5947e4cb7764ea1 Mon Sep 17 00:00:00 2001 From: Gustavo Luigi <=> Date: Wed, 21 Sep 2022 16:26:54 -0300 Subject: [PATCH] update config and bugfix --- config.json | 6 +++--- content/contents/produkt.blade.php | 2 +- content/index.blade.php | 20 ++++++++++---------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/config.json b/config.json index 225e3e9..53494bf 100644 --- a/config.json +++ b/config.json @@ -29,11 +29,11 @@ ] }, { - "name":"Produkte", - "description":"Produkte", + "name":"Produkt", + "description":"Produkt", "icon":"shopping-bag", "status":"1", - "blade": "produkte", + "blade": "produkt", "fields": [ { "name": "Beschreibung", diff --git a/content/contents/produkt.blade.php b/content/contents/produkt.blade.php index 17a583a..1178dde 100644 --- a/content/contents/produkt.blade.php +++ b/content/contents/produkt.blade.php @@ -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()}}" > diff --git a/content/index.blade.php b/content/index.blade.php index 73d72e5..f2d3638 100644 --- a/content/index.blade.php +++ b/content/index.blade.php @@ -225,16 +225,16 @@
- @foreach(filterByContentType($mdContents, "Produkte")->take(6) as $content) -
- - @if ($content->image) - - @else - - @endif - -
+ @foreach(filterByContentType($mdContents, "Produkt")->take(6) as $content) +
+ + @if($content->image) + + @else + + @endif + +
@endforeach
Mehr Produkte