Files
laralog/themes/sablog/views/search.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

31 lines
1007 B
PHP

@php $pageTitle = '搜索 - '.$siteName; @endphp
@include('partials.head')
<body>
@include('partials.header')
<div id="page">
<main id="content">
<h1 class="list-title">搜索:{{ $keyword ?: '全部' }}</h1>
<form action="{{ route('search') }}" method="get" class="search-form">
<input type="search" name="q" value="{{ $keyword }}" placeholder="输入关键词搜索文章">
<button type="submit" class="btn">搜索</button>
</form>
@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>{{-- #page --}}
@include('partials.footer')
@stack('theme:body_end')
</body>
</html>