M2: 主题系统(sablog经典+modern简约)+ 前台全部页面 + 老 URL 301 兼容 + markdown 双份导入

This commit is contained in:
ak
2026-08-11 17:58:29 +08:00
parent f16bb75538
commit 6214976a88
66 changed files with 2763 additions and 10 deletions
+25
View File
@@ -0,0 +1,25 @@
@php $pageTitle = '搜索 - '.$siteName; @endphp
@include('partials.head')
<body>
@include('partials.header')
<div class="container main-layout">
<main class="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>
@forelse($posts as $post)
@include('partials.post-card', ['post' => $post])
@empty
<div class="empty">没有找到相关文章</div>
@endforelse
@include('partials.pagination', ['paginator' => $posts])
</main>
@include('partials.sidebar')
</div>
@include('partials.footer')
</body>
</html>