diff --git a/content/index.blade.php b/content/index.blade.php index 0dc0773..14e4f20 100644 --- a/content/index.blade.php +++ b/content/index.blade.php @@ -1,3 +1,4 @@ +@inject('type', 'Type') @extends('template.'.config('settings.template').'.content.master') @section('content') @@ -26,62 +27,64 @@ - @php($news = filterByContentType("News")) - @if($news->isNotEmpty()) -
-
-
-
-

Aktuelles

-
- - @foreach($news->take(3) as $content) -
-
- - - -
-

- - {{$content->title}} - -

-
- - - {{ $content->updated_at->diffForHumans() }} - + @if($type->get("News")->status) + @php($news = filterByContentType("News")) + @if($news->isNotEmpty()) +
+
+
+
+

Aktuelles

+
+ + @foreach($news->take(3) as $content) +
+
+ + + +
+

+ + {{$content->title}} + +

+
+ + + {{ $content->updated_at->diffForHumans() }} + +
+ + {!! Str::limit($content->vorschau, 280) !!}
- {!! Str::limit($content->vorschau, 280) !!} -
+ - -
-
- @endforeach + @endforeach - @if($news->count() > 3) - - @endif + @if($news->count() > 3) + + @endif +
-
-
+ + @endif @endif