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>
32 lines
974 B
PHP
32 lines
974 B
PHP
@include('partials.head')
|
|
<body>
|
|
@include('partials.header')
|
|
<div class="container main-layout">
|
|
<main class="content">
|
|
<h1 class="sr-only">{{ $siteName }}</h1>
|
|
@if(session('success'))
|
|
<div class="alert alert-success">{{ session('success') }}</div>
|
|
@endif
|
|
@if(session('error'))
|
|
<div class="alert alert-error">{{ session('error') }}</div>
|
|
@endif
|
|
|
|
@include('partials.view-mode-switcher')
|
|
@include('partials.theme-inject', ['point' => 'content_top'])
|
|
|
|
@forelse($posts as $post)
|
|
@include('partials.post-card', ['post' => $post])
|
|
@empty
|
|
<div class="empty">暂无文章</div>
|
|
@endforelse
|
|
|
|
@include('partials.pagination', ['paginator' => $posts])
|
|
@include('partials.theme-inject', ['point' => 'content_bottom'])
|
|
</main>
|
|
@include('partials.sidebar')
|
|
</div>
|
|
@include('partials.footer')
|
|
@stack('theme:body_end')
|
|
</body>
|
|
</html>
|