From ada880abbbd7936c8a88cbc3516fefae63be416c Mon Sep 17 00:00:00 2001 From: xuanchen <122383162@qq.com> Date: Thu, 3 Jun 2021 16:13:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/index/index.blade.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/views/index/index.blade.php b/resources/views/index/index.blade.php index 4dcd243..41f00f2 100644 --- a/resources/views/index/index.blade.php +++ b/resources/views/index/index.blade.php @@ -112,9 +112,9 @@
- @if (getArticlesBYCate(28,8)->isNotEmpty()) - @foreach (getArticlesBYCate(28,8) as $article) - @if($loop->index < 3) + @if (getArticlesBYCate(28,30)->isNotEmpty()) + @foreach (getArticlesBYCate(28,30) as $article) + @if($loop->odd)
{{ $article->title }} {{ $article->description }} @@ -128,9 +128,9 @@
- @if (getArticlesBYCate(28,8)->isNotEmpty()) - @foreach (getArticlesBYCate(28,8) as $article) - @if($loop->index >= 3) + @if (getArticlesBYCate(28,30)->isNotEmpty()) + @foreach (getArticlesBYCate(28,30) as $article) + @if($loop->even)
{{ $article->title }} {{ $article->description }}