@forelse($articles as $article)
@if($article->hasCover() && ($coverUrl = $article->coverUrl()))
@endif
{{ optional($article->published_at)->format('Y-m-d') }}
@if($article->category) · {{ $article->category->name }} @endif
· {{ strtoupper($article->content_format) }}
@if($article->stick) · 置顶 @endif
{{ app(\App\Domain\Blog\ArticleExcerpt::class)->forList($article) }}
@empty
还没有文章
去后台发布第一篇,或运行 php artisan db:seed 载入演示内容。
@endforelse
@endsection