limited with take
parent
5269bde912
commit
3b82030883
|
@ -103,7 +103,7 @@
|
||||||
<section class="mt-2">
|
<section class="mt-2">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<h2 id="news" class="mt-5 mb-4">Aktuelle <strong>Neuigkeiten</strong></h2>
|
<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="col-12 col-md-4 mb-4" >
|
||||||
<div class="card h-100" style="background-color: #f8f8f8;">
|
<div class="card h-100" style="background-color: #f8f8f8;">
|
||||||
@if ($nach->image)
|
@if ($nach->image)
|
||||||
|
@ -189,7 +189,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<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">
|
<div class="col-4 col-md-2 mb-4">
|
||||||
|
|
Loading…
Reference in New Issue