调整分类
This commit is contained in:
@@ -22,7 +22,7 @@ class CategoryController extends Controller
|
||||
$articles = Article::where('category_id', $category->id)
|
||||
->latest('sort')
|
||||
->latest()
|
||||
->paginate();
|
||||
->paginate(2);
|
||||
|
||||
$parent = $category->getTop();
|
||||
|
||||
|
||||
@@ -36,9 +36,9 @@
|
||||
<div class="biaoti">{{ $article->title }}</div>
|
||||
<div class="sshuomign"><span>发布时间:{{ $article->created_at->format('Y-m-d') }}</span></div>
|
||||
<div class="article_txt">
|
||||
@if ($article->cover)
|
||||
<img src="{{ $article->cover_path }}">
|
||||
@endif
|
||||
{{-- @if ($article->cover)--}}
|
||||
{{-- <img src="{{ $article->cover_path }}">--}}
|
||||
{{-- @endif--}}
|
||||
{!! $article->content !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user