@php $pageTitle = ($archiveTitle ?? $category->name ?? '文章列表').' - '.$siteName; $pageDescription = $category->description ?? ($archiveTitle ?? $category->name ?? '文章列表').' - '.$siteName; @endphp @include('partials.head') @include('partials.header')

{{ $archiveTitle ?? ($category->name ?? '文章列表') }}

@if(isset($category) && ($category->description || $category->coverImageUrl()))
@if($url = $category->coverImageUrl()) {{ $category->name }} @endif
@if($category->description)

{{ $category->description }}

@endif

{{ $category->posts_count ?? $posts->total() }} 篇文章

@endif @include('partials.view-mode-switcher') @include('partials.theme-inject', ['point' => 'content_top'])
@forelse($posts as $post) @include('partials.post-card', ['post' => $post]) @empty
该分类暂无文章
@endforelse
@include('partials.pagination', ['paginator' => $posts]) @include('partials.theme-inject', ['point' => 'content_bottom'])
@include('partials.sidebar')
@include('partials.footer') @stack('theme:body_end')