@php $pageTitle = '归档 - '.$siteName; @endphp @include('partials.head') @include('partials.header')

文章归档

@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() }})
@foreach($days as $day => $dayPosts) @if(count($dayPosts) === 1) {{ $day }} @else {{ $day }} @endif @endforeach
@else {{ $month }} 月 @endif
@endforeach
@empty
暂无归档
@endforelse @include('partials.theme-inject', ['point' => 'content_bottom'])
@include('partials.sidebar')
@include('partials.footer') @stack('theme:body_end')