feat: restore sablog browse modes and clean imported HTML
Build and Deploy / verify (push) Successful in 40s
Build and Deploy / deploy (push) Successful in 36s

Keep the public site readable after import (nbsp, highlighter, wrapping code, compact pager) and finish the admin extras already in this tree: sticky levels, preview, page cache, and live llms.txt.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
gouki
2026-09-18 21:33:02 +00:00
co-authored by Cursor
parent 469160dc3f
commit ae47447062
98 changed files with 8618 additions and 901 deletions
+2
View File
@@ -11,6 +11,8 @@
<div class="alert alert-error">{{ session('error') }}</div>
@endif
@include('partials.view-mode-switcher')
@forelse($posts as $post)
@include('partials.post-card', ['post' => $post])
@empty
+2
View File
@@ -24,6 +24,8 @@
@endif
@include('partials.view-mode-switcher')
@forelse($posts as $post)
@include('partials.post-card', ['post' => $post])
@empty
@@ -3,6 +3,7 @@
<p>&copy; {{ date('Y') }} {{ $siteName }}
@if($siteIcp)<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener">{{ $siteIcp }}</a>@endif
</p>
<p>@include('partials.feed-links')</p>
<p>Powered by LaraLog · Laravel · Filament</p>
</footer>
</div>{{-- #outmain --}}
@@ -12,6 +12,7 @@
<meta name="generator" content="LaraLog">
<link rel="canonical" href="{{ url()->current() }}">
<link rel="alternate" type="application/rss+xml" title="{{ $siteName }}" href="{{ route('feed.rss') }}">
<link rel="alternate" type="text/plain" title="llms.txt" href="{{ route('feed.llms') }}">
<link rel="stylesheet" href="{{ theme('asset', 'style.css') }}">
@stack('head')
@stack('theme:head')
@@ -12,7 +12,7 @@
<li class="{{ request()->routeIs('tags*') ? 'current_page_item' : '' }}"><a href="{{ route('tags') }}">标签</a></li>
<li class="{{ request()->routeIs('links') ? 'current_page_item' : '' }}"><a href="{{ route('links') }}">友链</a></li>
<li class="{{ request()->routeIs('comments') ? 'current_page_item' : '' }}"><a href="{{ route('comments') }}">评论</a></li>
<li><a href="{{ route('feed.rss') }}">RSS</a></li>
@include('partials.feed-links', ['asList' => true])
@auth
<li><a href="{{ route('profile') }}">{{ auth()->user()->name }}</a></li>
<li>
+2
View File
@@ -10,6 +10,8 @@
<button type="submit" class="btn">搜索</button>
</form>
@include('partials.view-mode-switcher')
@forelse($posts as $post)
@include('partials.post-card', ['post' => $post])
@empty
+6 -1
View File
@@ -14,6 +14,7 @@
@if(session('error'))
<div class="alert alert-error">{{ session('error') }}</div>
@endif
@include('partials.post-preview-banner')
<article class="post-full">
@if(! empty($toc))
@@ -35,7 +36,11 @@
@endif
<h1 class="post-title">{{ $post->title }}</h1>
<div class="post-meta">
<time datetime="{{ $post->published_at->toIso8601String() }}">{{ $post->published_at->format(blog_setting('normaltime', 'Y-m-d H:i')) }}</time>
@if($post->published_at)
<time datetime="{{ $post->published_at->toIso8601String() }}">{{ $post->published_at->format(blog_setting('normaltime', 'Y-m-d H:i')) }}</time>
@else
<span>未发布</span>
@endif
@if($post->author)<span>· {{ $post->author->name }}</span>@endif
@if($post->category)
<span>· <a href="{{ route('category.show', $post->category->id) }}">{{ $post->category->name }}</a></span>
+2
View File
@@ -6,6 +6,8 @@
<main id="content">
<h1 class="list-title">标签:{{ $tag->name }}</h1>
@include('partials.view-mode-switcher')
@forelse($posts as $post)
@include('partials.post-card', ['post' => $post])
@empty