diff --git a/content/index.blade.php b/content/index.blade.php index a8ee55c..1db356b 100644 --- a/content/index.blade.php +++ b/content/index.blade.php @@ -45,25 +45,63 @@
-
-
-

Neuigkeiten

-
-
-
    -
-
-
+ @php($contents = filterByContentType("Aktuelles")) + @if($contents->isNotEmpty()) +
+
+

Neuigkeiten

+
+
+
+
+ @foreach($contents as $content) +
+
+ +
+

{{$content->title}}

+ {{$content->created_at}} +

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus architecto autem beatae, delectus dignissimos dolore dolorum, eius explicabo illo illum ipsam laborum libero mollitia neque quis repellendus, suscipit veritatis voluptatem!

+ +
+
+
+ @endforeach +
+
+
+ @endif -
-
-

Wettbewerbe

-
-
-
    -
-
-
+ @php($contents = filterByContentType("Wettbewerb")) + @if($contents->isNotEmpty()) +
+
+

Wettbewerbe

+
+
+
+
+ @foreach($contents as $content) +
+
+ +
+

{{$content->title}}

+ {{$content->created_at}} +

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus architecto autem beatae, delectus dignissimos dolore dolorum, eius explicabo illo illum ipsam laborum libero mollitia neque quis repellendus, suscipit veritatis voluptatem!

+ +
+
+
+ @endforeach +
+
+
+ @endif
diff --git a/content/lists/neuigkeiten.blade.php b/content/lists/neuigkeiten.blade.php index e6bc6b1..dbf7a72 100644 --- a/content/lists/neuigkeiten.blade.php +++ b/content/lists/neuigkeiten.blade.php @@ -17,7 +17,6 @@
@foreach($contents as $content) -
diff --git a/variables.json b/variables.json index 595dd11..8027d20 100644 --- a/variables.json +++ b/variables.json @@ -4,11 +4,5 @@ "value": "", "type": "date", "required": true - }, - - { - "name": "Filter Fields", - "type": "array", - "required": true } ] \ No newline at end of file