文章归档
@include('partials.theme-inject', ['point' => 'content_top']) @forelse($archives as $year => $months){{ $year }} 年
@foreach(range(1, 12) as $month)
@php $days = $months[$month] ?? []; @endphp
@if(count($days))
{{ $month }} 月 ({{ collect($days)->flatten(1)->count() }})
@endforeach
@foreach($days as $day => $dayPosts)
@if(count($dayPosts) === 1)
{{ $day }}
@else
{{ $day }}
@endif
@endforeach
@else
{{ $month }} 月
@endif
暂无归档
@endforelse
@include('partials.theme-inject', ['point' => 'content_bottom'])