Use ContentController exclusively for content

This commit is contained in:
DariusIII
2025-11-27 11:27:48 +01:00
parent c35458a556
commit 7dcfdba4de
6 changed files with 299 additions and 306 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
@if($front)
<!-- Front Page Content -->
<div class="px-6 py-8">
@if(is_array($content) && count($content) > 0)
@if(!empty($content) && count($content) > 0)
<div class="space-y-6">
@foreach($content as $item)
<article class="bg-white dark:bg-gray-800 rounded-lg shadow-md p-6 border border-gray-100 hover:shadow-lg transition-shadow duration-200">
@@ -43,7 +43,7 @@
<p class="text-gray-600">Browse our content pages</p>
</div>
@if(is_array($content) && count($content) > 0)
@if(!empty($content) && count($content) > 0)
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
@foreach($content as $item)
@if($item)