@extends('theme::layout') @section('content')
@if(filled($category->coverUrl()))
{{ $category->name }}
@endif

{{ $category->name }}

@if(filled($category->intro))
{!! nl2br(e($category->intro)) !!}
@elseif(filled($category->description))

{{ $category->description }}

@endif

{{ __('frontend.category.post_count', ['count' => $articles->total()]) }}

@forelse($articles as $article)
@if($article->hasCover() && ($coverUrl = $article->coverUrl())) {{ $article->title }} @endif

{{ $article->title }}

{{ optional($article->published_at)->format('Y-m-d') }} · {{ strtoupper($article->content_format) }} @if($article->stick) · {{ __('frontend.common.pinned') }} @endif

{{ app(\App\Domain\Blog\ArticleExcerpt::class)->forList($article) }}

@empty

{{ __('frontend.common.no_posts') }}

@endforelse
@endsection