From 2c9e945dcc62ea3babaa4db9e95b576775801460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20V=C3=B6lkl?= Date: Fri, 17 Sep 2021 10:25:27 +0200 Subject: [PATCH] limit results on home --- content/includes/css.blade.php | 2 +- content/index.blade.php | 7 +++---- content/lists/default.blade.php | 15 ++------------- 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/content/includes/css.blade.php b/content/includes/css.blade.php index 572c3b8..2bd15bd 100644 --- a/content/includes/css.blade.php +++ b/content/includes/css.blade.php @@ -1,4 +1,4 @@ - + diff --git a/content/index.blade.php b/content/index.blade.php index ce0c5d2..0c3c442 100644 --- a/content/index.blade.php +++ b/content/index.blade.php @@ -102,15 +102,15 @@

Aktuelle Neuigkeiten

- @foreach($nachrichten as $nach) -
+ @foreach($nachrichten->take(3) as $nach) +
@if ($nach->image) @else - @endif +
@@ -208,7 +208,6 @@
-
Mehr Produkte

diff --git a/content/lists/default.blade.php b/content/lists/default.blade.php index ef0e480..83ffc15 100644 --- a/content/lists/default.blade.php +++ b/content/lists/default.blade.php @@ -17,15 +17,6 @@
- - - - - - - - -
@@ -33,8 +24,8 @@ @foreach($nachrichten as $nach) -
-
+
+
@if ($nach->image) @else @@ -44,8 +35,6 @@
- -