Files
laralog/resources/views/archives.blade.php
T
goukiandCursor 36c4ffc5b4
Build and Deploy / verify (push) Successful in 37s
Build and Deploy / deploy (push) Successful in 38s
fix: restyle pager chips and restore theme ad slots
Replace the loose page-count label with a SaBlog-style 6 / 316 chip, wire inject/stylevar HTML into list and post views, and flush page cache when ads are saved.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-18 21:48:24 +00:00

36 lines
1.4 KiB
PHP

@php $pageTitle = '归档 - '.$siteName; @endphp
@include('partials.head')
<body>
@include('partials.header')
<div class="container main-layout">
<main class="content">
<h1 class="list-title">文章归档</h1>
@include('partials.theme-inject', ['point' => 'content_top'])
@forelse($archives as $year => $months)
<h2 class="archive-year">{{ $year }} 年</h2>
<ul class="archive-list">
@foreach($months as $month => $monthPosts)
<li>
<a href="{{ route('archives.month', $year.$month) }}">{{ (int) $month }} 月</a>
<span class="count">({{ $monthPosts->count() }} 篇)</span>
<ul class="archive-posts">
@foreach($monthPosts as $post)
<li><a href="{{ route('posts.show', $post->id) }}">{{ $post->title }}</a> <time>{{ $post->published_at->format(blog_setting('listtime', 'm-d')) }}</time></li>
@endforeach
</ul>
</li>
@endforeach
</ul>
@empty
<div class="empty">暂无归档</div>
@endforelse
@include('partials.theme-inject', ['point' => 'content_bottom'])
</main>
@include('partials.sidebar')
</div>
@include('partials.footer')
@stack('theme:body_end')
</body>
</html>