limited with take

master
Benjamin Völkl 2021-09-17 21:10:21 +02:00
parent 5269bde912
commit 3b82030883
1 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@
<section class="mt-2">
<div class="row">
<h2 id="news" class="mt-5 mb-4">Aktuelle <strong>Neuigkeiten</strong></h2>
@foreach(filterByContentType($mdNachrichten, "News") as $nach)
@foreach(filterByContentType($mdNachrichten, "News")->take(3) as $nach)
<div class="col-12 col-md-4 mb-4" >
<div class="card h-100" style="background-color: #f8f8f8;">
@if ($nach->image)
@ -189,7 +189,7 @@
</div>
<div class="row">

@foreach(filterByContentType($mdNachrichten, "Produkte") as $nach) (edited)
@foreach(filterByContentType($mdNachrichten, "Produkte")->take(6) as $nach)


<div class="col-4 col-md-2 mb-4">